Quick Starts
Install the library
# Install via npm
npm install whatscode.js
# or install it from Github for more new features, some bug fixes, and mybe theres some bugs too.
npm i github:JastinXyz/whatscode.jsMake your first simple bot
const { Client } = require("whatscode.js");
const bot = new Client({
name: "Your bot name",
prefix: "Your bot prefix",
});
// required callback
bot.onConnectionUpdate(); // connection update
bot.onCredsUpdate(); // credentials update
bot.onMessage(); // message update
// example ping command
bot.command({
name: "ping",
code: `π | $ping ms`
});Callbacks
Variables
Links
Last updated