bot-creator-for-discord
v1.0.6
Published
```javascript const dc = require('bot-creator-for-discord')
Downloads
7
Readme
how to use
const dc = require('bot-creator-for-discord')
//Creating a client
const bot = new dc({
token: 'YOUR_BOT_TOKEN',
prefix: 'YOUR_BOT_PREFIX (OPTIONAL)'
}, {
events: ['msg'] //Allows to run commands
})
//Example command
bot.command({
name: 'ping',
aliases: ['pong'],
code: async(bot, msg) => {
bot.createMessage(msg.channel.id, msg.channel.guild.shard.latency)
}
})