0.2.4 • Published 6 years ago
discord-bot-wrapper v0.2.4
Discord.js Bot Wrapper
Welcome to Discord.js Bot wrapper! This tiny library is just basically a wrapper for Discord.js's Client, more specifically used for bots. If you want to learn how to set your Bot up, head out to this page.
Installation
As any other npm package, this one is easily added to your project:
npm install --save discord-bot-wrapper
Usage
It is also simple to use! Just initialise your bot as such:
const bot = require('discord-bot-wrapper')({
name: 'My bot',
auth: {
token: 'mytoken',
},
events: {
message(message) {
// My logic goes here
}
}
});