Skip to content

πŸš€ Command, slash command & event handler - Discord Bot Template (v14)

License

Notifications You must be signed in to change notification settings

antoinemcx/Structure-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

78 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Structure-Discord-Bot

Discord.js command, slash command & event handler by Melio.
If you like the project, feel free to put a ⭐ for better referencing ; If you need help, join the server support.

MIT License CodeFactor Version discord.js Stars Support server

Features

  • πŸš€ Ready to code Discord bot
  • πŸ”¨ Files and commands structure
  • πŸ“‚ Classic and slash commands handler
  • πŸ• The commands handlers contain permissions and cooldown checker
  • πŸ“‹ A slash commands registration file
  • 🎈 Event handler including error handler

Starting the project

Configuration

The configuration file named config.js have to content yout bot's token and prefix, and the IDs of all other owners (or just yours).

module.exports = {
    token: 'THE_BOT_TOKEN',
    botID: 'THE_BOT_ID',
    prefix: 'THE_BOT_PREFIX',
    owner: [ "YOUR_DISCORD_ID" ],
};  

Installation

$ npm install

Register slash commands

$ npm run slash

Start the bot

$ npm run start

More

For any errors found, please contact me here or do a pull request.
This repository is licensed under the MIT License. See the LICENSE file (here) for more information.