Creating a Simple Discord Bot With Discord.js

Image for post
Image for post

Intent

Creating the Bot

1. Downloading node.js

2. Create Bot Directory/Files

3. Installing Dependencies

4. Creating the Bot

Image for post
Image for post

5. Authorization Tokens

Image for post
Image for post

6. Add the Bot to Your Server

Image for post
Image for post

7. Bot Logic and JSON Config Files

{ "token" : "YOUR TOKEN HERE" }
{ 
"name": "bannerbot",
"version": "1.0.0",
"description": "M&B Bannerlord Countdown",
"main": "bannerbot.js",
"author": "A. Morast",
"dependencies": {}
}

8. Run the Bot

9. Full Code

I am a professional software engineer and an amateur mathematician. My main interests are programming, machine learning, fluid dynamics, and a few others.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store