1.0.20 • Published 3 years ago
kofe v1.0.20
kofe
A Discord library written in JavaScript
Example:
const Bot = require('kofe');
const bot = new Bot({
token: "Your Token",
intents: 4608
});
bot.on('message', (message) => {
const args = message.content.slice('!'.length).trim().split(' ');
const command = args.shift().toLowerCase();
if(command === 'ping') return bot.sendMessage('pong!', message.channel_id);
});
bot.run();