Step 1: Setting Up Your Bot
1.1 Obtain Your Bot Token
Click New Application and give it a name.
Go to the Installation tab:
Under Privileged Gateway Intents, enable:
Under Public Bot settings:
Uncheck Require OAuth2 Code Grant
Copy your Bot Token from the Token section
Note: All of these options are found under the Bot tab.
Keep your bot token private. Treat it like a password.
Step 2: Configuring Your Bot
Update your bot’s configuration file core.yml with the following parameters:
Version: "1.8.6"
BotToken: "YOUR_BOT_TOKEN"
LicenseKey: "YOUR_LICENSE_KEY"
MongoURI: "YOUR_MONGO_URI"
GuildID: "YOUR_GUILD_ID"
BotName: "Aegis Bot"
LogCommands: true
Statistics: true
Timezone: "America/New_York"
How to Find Your Guild ID
In Discord, go to User Settings > Advanced
Right-click your server name in the sidebar
Paste this value into the GuildID field in your config.
Step 3: Setting Up MongoDB
Aegis Bot uses MongoDB for data storage.
Follow the steps in the MongoDB Setup Guide to:
Create a MongoDB Atlas account
Set up a new cluster and database
Obtain your connection string (MongoURI)
Important: Do not skip this step! It is required.
Step 6: Running Your Bot
6.1 Navigate to the Bot Directory
Open Command Prompt or Terminal and navigate to the folder where your bot files are located:
Video Tutorial: https://www.youtube.com/watch?v=neQUxiLPglg
6.2 Install Dependencies
Install required dependencies using npm:
6.3 Start the Bot
Start your bot with:
If npm isn't recognized, restart your terminal and try again.