Skip to content

matthewpity/Discord.JS-v14-BOT-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord.JS v14 BOT Template

Discord bot template for Discord.JS v14

Features of this template

  • Slash commands
  • Easy to understand
  • Supports the latest discord.js
  • Events handler

How to use it

Settings up the bot

  • 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.image
  • Click Add Bot.image
  • Now your bot is created and you just have to paste in the information from your Discord Developer Portal into the config.js file.

Installing packages

  • 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.

Running the bot

You can run the bot on your computer using Node.js like this: node shards.js.

Make the bot run 24/7 on Ubuntu or Debain

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.