Giter VIP home page Giter VIP logo

discord-dashboard's Introduction

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.

discord-dashboard's People

Contributors

kaisarion avatar ntmnathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discord-dashboard's Issues

not-detecting new ejs files

I made test-clones of manage.ejs and renamed them to avoid any conflicts foo.ejs/bar.ejs, and make some test linking to them in the manage.js but when I stop the bot and then start the bot, the foo and bar .ejs are not detected and redirects to the 404?

What am I missing? all 3 (manage/foo/bar) are all in the same folder and I have them linked accordingly:

        <a href="/dashboard/server/<%= guild.id %>/foo" class="button is-medium is-rounded is-danger">
          <i class="fa-solid fa-medal" style="padding-right: 5px;"></i> Foo ejs
        </a>
      </p>
<p class="control">
        <a href="/dashboard/server/<%= guild.id %>/bar" class="button is-medium is-rounded is-danger">
          <i class="fa-solid fa-medal" style="padding-right: 5px;"></i> Bar ejs
        </a>
      </p>

Error: Cannot read property 'prefix' of undefined in views\dashboard\manage.ejs:23

TypeError: C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\views\dashboard\manage.ejs:23
    21|         <div class="mb-3">
    22|             <label for="prefix" class="form-label text-light">Prefix</label>
 >> 23|             <input type="text" class="form-control" name="prefix" placeholder="<%= settings.prefix %>">
    24|             <br>
    25|             <button type="submit" class="btn btn-success"><i class="fas fa-paper-plane"></i> Save Changes</button>
    26|             <br>

Cannot read property 'prefix' of undefined
    at eval (eval at compile (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\ejs\lib\ejs.js:662:12), <anonymous>:38:35)
    at manage (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\ejs\lib\ejs.js:692:17)
    at tryHandleCache (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\ejs\lib\ejs.js:272:36)
    at View.exports.renderFile [as engine] (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\ejs\lib\ejs.js:489:10)
    at View.render (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\express\lib\view.js:135:8)
    at tryRender (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\express\lib\application.js:640:10)
    at Function.render (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\express\lib\application.js:592:3)
    at ServerResponse.render (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\express\lib\response.js:1012:7)
    at C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\routes\dashboard.js:82:9
    at Layer.handle [as handle_request] (C:\Users\entro\Downloads\discord-dashboard-master\discord-dashboard-master\node_modules\express\lib\router\layer.js:95:5)

Please Help

good evening,
I would like to ask you how to fix a profile error. I'm sending you a screenshot

image

I will be happy for your answer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.