A simple Discord Bot Dashboard that is coded with Express, MongoDB and Discord.js
Screenshots: Click Here
- Node.js v19.5.0 or later
- Discord.js v14.11.0 or later
- Create a folder on your computer, then type the following console command to clone this repository.
git clone https://github.com/NTMNathan/discord-dashboard
- 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://<username>:<password>@<host>:<port>/<database>
. (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
Feel free to join the Discord Server and ask for help in the #support
and #bugs
channels. If you have any changes that you like to make to this repo, make a Pull Request and it will be reviewed.