Discord bot template for Discord.JS v14
- Slash commands
- Easy to understand
- Supports the latest discord.js
- Events handler
- Open up your internet browser and go to your Discord Developer Portal.
- There you will create an application.
- After that go to the Bot tab.
- Click Add Bot.
- Now your bot is created and you just have to paste in the information from your Discord Developer Portal into the config.js file.
- Once you downloaded the source code make sure to fill in all the information in config.js.
- After that install all the packages using npm:
npm install package.json
.
You can run the bot on your computer using Node.js like this: node shards.js
.
For running the bot 24/7 I recommend using Tmux:
- Install Tmux using
sudo apt-get install tmux
. - Create a Tmux session like this:
tmux
. - Now you can just run the bot using
node shards.js
and you are good to go.