1.0.34 • Published 1 year ago

@delirius/welcard v1.0.34

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

1.0.24

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.34

1 year ago

1.0.22

2 years ago

1.0.23

2 years ago

1.0.19

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.17

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago