Last updated: 26-12-2023 @ 17:50 GMT
README.md last updated: 16-01-2024 @ 10:30 GMT
-
Download this GitHub repository and open it in your code editor (e.g. Visual Studio Code).
-
Create a new file called
.env
and paste in the following:
TOKEN=
MONGODB_TOKEN=
-
Copy your Discord bot token from the Discord Developers website and paste it next to
TOKEN=
in your.env
file. -
If you do not know how to set up a MongoDB database, then please watch episode 3 of the Discord.js V14 Revamped series to see how to create an account and create login credentials.
-
Copy the URI that is given on the MongoDB website and paste it next to
MONGODB_TOKEN=
in your.env
file. -
Save everything and open your terminal / command prompt.
-
Run the following command to install every package needed for this codebase to run properly:
npm install
- After everything is installed, create 3 folders inside your
src
folder: one with the namebuttons
, one namedcontextmenus
and the last one namedmodals
. These folders are used for later videos, but you can leave them empty. You cannot delete them - they must exist in yoursrc
folder. If done correctly, yoursrc
folder should look like this:
📁 src
📁 buttons
📁 commands/misc
📁 contextmenus
📁 events
📁 handlers
📁 modals
📁 utils
config.json
index.js
messageConfig.json
suspiciousUsers.json
- Run one of the following commands to start your bot:
node .
nodemon .
Run node .
if you do not want an auto-restart on every save you make in your code editor; run nodemon .
if you do want an auto-restart on every save you make in your code editor.
If you have any questions about this code base or you face issues when following this step-by-step guide, you can join our The North Solution Discord server and we will help you out.