@vnbot/custom-bot
1.0.2 • Public • Published
CUSTOM_BOT
How to use ?
npm i --save @vnbot/custom-bot
const { Bot } = require('@vnbot/ezbot');
const bot = new Bot({
email: 'email',
password: 'password',
});
const Plugin = require('@vnbot/custom-bot');
bot.on('info', (msg) => msg && msg.log && msg.log());
bot.once('error', (err) => {
bot.stop();
});
bot.register(new Plugin({ prefix: '!', name: 'Bot', admins: ['123'] })).register(otherPlugin);
bot.start();
Package Sidebar
Install
Weekly Downloads