Skip to content

NTMNathan/discord-dashboard

Repository files navigation

Discord Dashboard Example

A simple Discord Bot Dashboard that is coded with Express, MongoDB and Discord.js

Screenshots: Click Here

Requirements

  • Node.js v19.5.0 or later
  • Discord.js v14.11.0 or later

Setup

  1. Create a folder on your computer, then type the following console command to clone this repository.
git clone https://github.com/NTMNathan/discord-dashboard
  1. Create a Discord Application and name it.

alt text

  1. Rename example.env to .env and fill the required values from the Discord OAuth2 and Bot Page. Do not show anyone these!

  2. Install all of the required NPM modules with the following command...

npm install --save
  1. Add the callback URL to the Bot's OAuth2 Page. Click the save button after that.

alt text

  1. 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 of mongodb://<username>:<password>@<host>:<port>/<database>. (Might be different!)

  2. 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
  1. Start the dashboard.
node bot

Support and Feedback

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.