A simple Discord Bot Dashboard that is coded with Express, MongoDB and Discord.js
Screenshots: Click Here
- Node.js v17 or later
- Discord.js v13.6.0 or later
1. git clone https://github.com/DairyWeb3638077/discord-dashboard-main
- Create a Discord Application and name it.
-
Rename
example.env
to.env
and fill the required values from the Discord OAuth2 and Bot Page. Do not show anyone these! -
Install all of the required NPM modules with the following command...
npm install --save
- Add the callback URL to the Bot's OAuth2 Page. Click the save button after that.
-
Create a MongoDB database. You can choose between hosting it yourself (locally, VPS) or from MongoDB Atlas. Then paste the connection string into the
.env
file. The connection string is in the format ofmongodb+srv://<username>:<password>@cluster0.oojpt.mongodb.net/<DB-NAME>?retryWrites=true&w=majority
. (Might be different!) -
After filling out the
.env
file, run the following command in the console to deploy the bot commands. This may take up to an hour to process through. Do this once unless you have made major changes to the commands (New Command, changed subcommands, etc).
npm run deploy
- Start the dashboard.
node bot