1.3.0 • Published 8 years ago
bot-discord v1.3.0
Bot-discord
About
bot-discord
is a free, open-source, small node.js module that helps you with creating your own Discord bots.
- Object-oriented
- Using only discord.js module
Installation
npm install --save bot-discord
How to use
Example bot with this API:
// Load bot class
const {Bot} = require('bot-discord');
const TOKEN = 'your token here';
let bot = new Bot(TOKEN);
(async () => {
try {
let token = await bot.init();
// token === TOKEN
} catch(err) {
console.error('Oh no! Error :-(', err);
return;
}
})();
For more examples see /examples