1.0.6 • Published 3 years ago

bot-creator-for-discord v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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)
  }
})
1.0.2

3 years ago

1.0.1

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago