A barebones, skeleton Discord.JS bot, intended to serve as the foundation for a discord bot.
- Command Handler
- Event Handler
- Example Event and Command
- Server Prefix Support
- Env File Config
- Basic Help Command
- Prefix Control
- Commands
module.exports = {
name: 'ping', // Name of the command, will show on help command
description: 'Ping Pong',
aliases: ['pinger'],
category: 'Test',
execute(args, client, message) {
message.channel.send('pong!')
}
}
- Events
module.exports = {
event: 'ready', // Name of the event (ready, message, error, guildUpdate, etc)
execute() {
console.log('Bot started')
}
}