Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@delirius/welcard

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@delirius/welcard

WelCard is a lightweight and futuristic welcome card library designed for WhatsApp Bots.

  • 1.0.34
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-52.38%
Maintainers
0
Weekly downloads
 
Created
Source

typescript-starter dark logo

**@delirius/welcard** is a lightweight and futuristic welcome card libary designed for WhatsApp & Discords Bots.

version downloads install size

Installation

npm i @delirius/welcard

Usage with Baileys (WhatsApp Bot)

// ES6
import { WelCard } from "@delirius/welcard";

// CommonJS
const { WelCard } = require("@delirius/welcard");

const card = new WelCard()
  .setName("Welcome")
  .setAuthor('Participants')
  .setServer('Group Name')
  .setColor("auto")
  .setBrightness(50)
  .setThumbnail("https://i.postimg.cc/3rLKbgLH/image.jpg");
const cardBuffer = await card.build();

sock.sendMessage(jid, { image: cardBuffer }); // sending the image]

Standalone Usage


// ES6
import { WelCard } from "@delirius/welcard";
import fs from "fs";

// CommonJS
const { WelCard } = require("@delirius/welcard");
const fs = require("fs");

(async () => {
  const card = new WelCard()
    .setName("Bienvenido")
    .setAuthor("Sareth")
    .setServer("Delirius Bot 🪐")
    .setColor("auto")
    .setBrightness(50)
    .setThumbnail("https://i.postimg.cc/3rLKbgLH/image.jpg");

  const cardBuffer = await card.build();

  fs.writeFileSync("card.png", cardBuffer);
  console.log("Listo");
})();

Search Lyrics

// ES6
import { searchLyrics } from "@delirius/welcard";

// CommonJS
const { searchLyrics } = require("@delirius/welcard");

(async () => {
const result = await searchLyrics("Money lisa");
console.log(result);
})();

SSWEB

// ES6
import { ssweb } from "@delirius/welcard";
import fs from "fs";

// CommonJS
const { ssweb } = require("@delirius/welcard");
const fs = require("fs");

(async () => {
  const res = await ssweb("https://www.npmjs.com/package/@delirius/welcard");
  fs.writeFileSync("ssweb.png", res.result);
  console.log("Done.");
});

Support and Updates

This project will receive updates and more details will be implemented.

Keywords

FAQs

Package last updated on 09 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc