This is a simple boilerplate template to be used to easily create new Discord bots in under 10 minutes. It uses the latest Discord.js v14 framework, and can be used for any purposes! See below for the simple installation steps.
It literally only takes 5 steps:
-
Create a new application on the Discord Developer Portal
-
Create a repo using this template and clone it to your machine
-
Open a terminal window in that location and run the command
npm installto install the neccessary packages -
Create a new file named
.envand add two values as shown below# your application's token, do NOT share this with anyone # this can be found by heading to your application's bot page in the discord developer portal and clicking "reset token" # you can then copy and paste the value here TOKEN=ABCDEFGHIJKLMNOPQRSTUVWXZY # the ID of the server you are registering the commands in # turn on developer mode in your discord client if you haven't already, and right click your server and press "Copy ID" GUILD_ID=123456789
-
Use
node index.jsornode .to run the bot
And it's as easy as that!