ckptw
easy way to create a Whatsapp Bot. Fork version of whatscode.js but we make it not a string-based command. We just need an package to create Whatsapp Bot with some lines of code, so we create this package.
Installation
npm i @mengkodingan/ckptw
npm i github:mengkodingan/ckptw
Setup
const { Client } = require("@mengkodingan/ckptw");
const bot = new Client({
name: "something",
prefix: "!",
autoRead: true,
});
bot.ev.once('ready', (m) => {
console.log(`ready at ${m.user.id}`);
});
bot.command({
name: "ping",
code: async (ctx) => {
ctx.sendMessage(ctx.id, { text: "pong!" });
},
});
bot.launch();