A template to create a fully customized Discord bot suited to your server.
- Clone this repository and rename it with any name you want
- Run
npm installin your project directory to install dependencies
Next, you can edit your new project with an IDE like Visual Studio Code
Important
You must declare Discord Itents to use different events
To use Discord Privileged Intents, you must activate it on Discord Developer Portal in your bot settings
Note
You can use a list of required intents with intentsBits, or use an integer code with intentsCode
To use intentsCode, you can use Discord Itents Calculator
Make sure the intents you declare match the events your bot listens to.
Use this file to deploy your slash commands
You need Node.js to execute this script (node deployer.js) and deploy commands
You need to execute only once no matter how many times you restart your Discord bot
You must execute it every time you add or edit commands
Put in this file all id or token you need, like client id, channels id, guilds id, etc...
Important
You must put in this file your bot client id and token to use it in the index.js and deployer.js
package.json contains informations that you can edit, like Discord bot name, version, author, etc...
package-lock.json contains informations about Node.js package used in your project
Warning
You must not edit this file manualy
If you want update a Node.js package, you need Node.js and execute npm update <package>
But you can use this file to get informations about packages and use it in your code
You can see infosEmbed for an example