Skip to content

code2cube/Eris-Bot-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Hello there! This is a template for an Eris.js based Discord Bot. Note this is not an official template and is not associated with the Eris team.

Features include:

  • Event Handler
  • Command Handler
  • 2 Sample Commands
  • 1 Sample Event


Setup

First, setup a new Discord Bot at the Discord Developer Portal. Make sure to enable gateway intents and add the bot to your server(s) by going to OAuth2 > URL Generator > Selecting Bot as a Scope > Select the necessary permissions > Copy and go to the generated URL on the bottom. Also make sure to reset the token and copy the new one.


Next, clone this repo or download the files manually. Once that is done make sure to replace the token in the .env file with the one you obtained while seting up the bot. You can also modify the command prefix here.

Finally, make sure to install all required dependencies by running this command:
npm i
Start the bot by running this command:
node index.js