1.0.39 • Published 1 year ago

@delirius/welcard v1.0.39

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("Welcome")
    .setAuthor("Participants")
    .setServer("Group Name 🪐")
    .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");
})();

Support and Updates

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

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.24

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.34

2 years 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