TemplateJs is an open source discord.js based bot template that will help you build a Discord bot in a quick and elegant way. It's easy-to-use and simple-to-setup Command handler for Discord bots, You just have to tweak few settings, add your commands, and you will be ready to go!
git
command line (Windows | Linux | MacOS) installednode
Version 16.x or newer- guild id of the server, the client id and the token of the bot
-
Make sure that the 'applications.commands' scope is checked in the scopes section of the OAuth2 settings for your bot
-
Clone this repo
git clone https://github.com/GDGAlgiers/discord.js-bot-template
- Put the token and the client id of your bot, the guild id of your discord server, into the config.js file
{
"clientId": "your client id",
"guildId": "your guild id",
"token": "your bot's token"
}
- Install the dependencies
npm install
- Run the bot.js file
node src/bot.js
⚠️ Be careful, hide your config.json file from pushing your bot and server informations !