A Basic template for enthusiast in this world of discord-bot-development.
This template contains some example ready for being tested.
- Built with Discord JS v14
- Supports applications commands ( / commands )
- Contains Commands and Events Handlers
- Example commands for using :
- basic command ( ping )
- command with parameters (sum)
- Embeds
- Buttons
- Modals
- Fork or clone the repository by running:
git clone https://github.com/Nestor-VP/discordJS-bot-template.git
- On template's directory, run:
npm install
- Create a .env file and add your BoT token and ID ( check .env.example)
- Register /commands by running:
node register_commands_global.js
- Run:
node index.js
ornode .
to start the bot - On discord, start typing the commands ( /ping , /embed , /buttons , etc)
- enjoy!
In case the bot commands are not observable in your server after running the register script, try restarting the discord app.