Socket
Socket
Sign inDemoInstall

@delirius/welcard

Package Overview
Dependencies
20
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @delirius/welcard

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


Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
1
Install size
43.2 MB
Created
Weekly downloads
 

Readme

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)

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

const card = new welCard()
  .setName("Bienvenido/a")
  .setAuthor('Participante')
  .setServer('Nombre del grupo')
  .setColor("auto")
  .setBrightness(50)
  .setThumbnail("https://i.postimg.cc/3rLKbgLH/image.jpg");
const cardBuffer = await card.build();

sock.sendMessage(jid, { image: cardBuffer }); //envio de la imagen

Standalone Usage

(async () => {
  const { welCard } = require("@delirius/welcard");
  const fs = require("fs");

  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");
})();

new functions


// search lyrics

(async () => {
const { searchLyrics } = require("@delirius/welcard");
const result = await searchLyrics("Money lisa");
console.log(result);
})()

// ssweb

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

Support and Updates

Este proyecto recibira actualizaciones y se implementaran mas detalles.

Keywords

FAQs

Last updated on 06 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc