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.
- ๐ 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
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" ],
};
$ npm install
$ npm run slash
$ npm run start
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.