Giter Club home page Giter Club logo

discord-bot-dashboard's Introduction

Turborepo starter

This is an official Yarn v1 starter turborepo.

What's inside?

This turborepo uses Yarn as a package manager. It includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • ui: a stub React component library shared by both web and docs applications
  • config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This turborepo has some additional tools already setup for you:

Setup

This repository is used in the npx create-turbo command, and selected when choosing which package manager you wish to use with your monorepo (Yarn).

Build

To build all apps and packages, run the following command:

cd my-turborepo
yarn run build

Develop

To develop all apps and packages, run the following command:

cd my-turborepo
yarn run dev

Remote Caching

Turborepo can use a technique known as Remote Caching (Beta) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching (Beta) you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

cd my-turborepo
npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:

npx turbo link

Useful Links

Learn more about the power of Turborepo:

discord-bot-dashboard's People

Contributors

huskydog9988 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord-bot-dashboard's Issues

Can u use it for discord.py bot?

Hey, I have a discord bot hosted on discord.py and I wanted a dashboard. First-of-all can you even make a dashboard for Discord.py? And do your dashboard support discord.py? If this was dumb sorry.

Can't add command

Hello,

When I try to add a command it redirects me to: localhost:3000/addCommand

It gives me a 404 Error

Get Started wiki is outdated

This code is not working since dashboard is now a class and should be updated

// Discord client setup
const client = new Discord.Client();
const oAuth = Discord.OAuth2Application;
// dotenv
require('dotenv').config();
// Dashboard package
const dashboard = require("discord-bot-dashboard");

// ...
client.on('ready', () => {

  dashboard.run(client, { port: your_open_port, clientSecret: process.env.CLIENT_SECRET, redirectURI: process.env.REDIRECT_URI}, oAuth);
  //...

});
//...

Supporting multiple languages

Is your feature request related to a problem? Please describe.
Currently, the dashboard is only available in English.
Despite of most code is written in English and uses this language, it would make life much easier for bot developers if they can use the dashboard in their mother tongue.

It could be done with language config files where any description and word in the dashboard is translated in its config file.

It would be the easiest approach to begin with:

  • English
  • German

and continuing with

  • French
  • Russian
  • Spanish
  • Italian

Failed to lookup view "index"

Hi,
I'm getting this error in dashboard bot:

Error: Failed to lookup view "index" in views directory "./src/views"
at Function.render (/discord/meme-bot/node_modules/express/lib/application.js:580:17)
at ServerResponse.render (/discord/meme-bot/node_modules/express/lib/response.js:1012:7)
at app.get (/discord/meme-bot/node_modules/discord-bot-dashboard/modules/app.js:81:11)
at Layer.handle [as handle_request] (/discord/meme-bot/node_modules/express/lib/router/layer.js:95:5)
at next (/discord/meme-bot/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/discord/meme-bot/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/discord/meme-bot/node_modules/express/lib/router/layer.js:95:5)
at /discord/meme-bot/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/discord/meme-bot/node_modules/express/lib/router/index.js:335:12)
at next (/discord/meme-bot/node_modules/express/lib/router/index.js:275:10)

followed everything
and fixed missing setup information

Cannot access app before initialization

2021-03-25 21:19:15 - error [app.js]: Cannot access 'app' before initialization
{
  "stack": "ReferenceError: Cannot access 'app' before initialization
    at Object.<anonymous> (/home/runner/nodebot-v4-3/node_modules/discord-bot-dashboard/modules/app.js:9:45)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at /home/runner/nodebot-v4-3/node_modules/discord-bot-dashboard/index.js:31:17
    at new Promise (<anonymous>)
    at Dashboard.run (/home/runner/nodebot-v4-3/node_modules/discord-bot-dashboard/index.js:29:16)
    at Client.<anonymous> (/home/runner/nodebot-v4-3/app.js:42:13)
    at Client.emit (events.js:326:22)
    at WebSocketManager.triggerClientReady (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
    at WebSocketManager.checkShardsReady (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
    at WebSocketShard.<anonymous> (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
    at WebSocketShard.emit (events.js:314:20)
    at WebSocketShard.checkReady (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
    at WebSocketShard.onPacket (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketShard.js:447:16)
    at WebSocketShard.onMessage (/home/runner/nodebot-v4-3/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
    at WebSocket.onMessage (/home/runner/nodebot-v4-3/node_modules/ws/lib/event-target.js:132:16)
    at WebSocket.emit (events.js:314:20)
    at Receiver.receiverOnMessage (/home/runner/nodebot-v4-3/node_modules/ws/lib/websocket.js:825:20)"
}

I keep getting this error while trying to run my bot, I use a custom client for that. Someone please help me through this?

Get list of all servers on which the bot is

Describe the solution you'd like

  • There should be a feature where you can see all the (current) servers the bot got invited on.
  • We might need to save all the servers on a local database and update it only when the bot joins / leaves a server and for the initial entries.
  • The database table should contain the guild id and the guild name (ID as the unique identificator)

Github Pages

Is it possible to run the dashboard in the github pages

module.js:674

module.js:674
throw err;
^

SyntaxError: /home/neoll/BOTS/discord-bot-dashboard/private_config.json: Unexpected end of JSON input
at JSON.parse ()
at Object.Module._extensions..json (module.js:671:27)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/neoll/BOTS/discord-bot-dashboard/discord-bot-sourcefiles/main.js:10:20)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
[nodemon] app crashed - waiting for file changes before starting...

add bot token in config.json, and change /discord-bot-sourcefiles/main.js to client.login(config.token);

my bot keeps crashing

i cant add any commands
it goes random online
it gives an error with no conclusion
my bot just does not work for some reson with the scripts

pls help me
~ @GamingMineblox

How i can integrate my bot?

Hello, i writting my bot in Discord bot maker, can i integrate my bot? and how its work? Thx.

first start error:

npm start

[email protected] start /home/neoll/bot/discord-bot-dashboard
nodemon discord-bot-sourcefiles/main.js

[nodemon] 1.18.3
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node discord-bot-sourcefiles/main.js
module.js:540
throw err;
^

Error: Cannot find module '../private_config.json'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/home/neoll/bot/discord-bot-dashboard/discord-bot-sourcefiles/main.js:10:20)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
[nodemon] app crashed - waiting for file changes before starting...

ERROR when trying to fetch image from unsplash

Hi, I'm getting this error when trying to fetch a random image from unsplash using unsplash-source-node which let me fetch a random Unsplash image. But when doing so I get this error (node:15440) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'pipe' of undefined

MAIN DISCUSSION - npm Package

The conversion of this project to an npm package, or at least a branch of it I feel could hugely increase the effect this project may have. I've done quite a bit of the necessary code to convert it, and if this idea is at least toyed with, I would be more than willing to submit it.

New Codebase

If your wondering what is going on rn, a quick update. We are finally reworking the dashboard properly. Due to that, we did some repository maintenance. For example we closed old prs, issues, removed all the old code. If you want to find the old version of the dashboard, fret not, it still exists, and you are free to do with it as the license permits.

Adding control functions for the dashboard

Is your feature request related to a problem? Please describe.
The dashboard needs the functionality to control the bot directly.

Describe the solution you'd like

  • Changing the game status of the bot
  • Changing the status of the bot
  • Changing the config file (e.g. version, etc. - concept need to be worked out)

Error: secret option required for sessions

Hello ! First of all thank you for creating this dashboard!

However I have an error, when I go to the web page it tells me this:

Error: secret option required for sessions at session (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express-session\index.js:200:12) at Layer.handle [as handle_request] (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\layer.js:95:5) at trim_prefix (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:317:13) at D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:284:7 at Function.process_params (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:335:12) at next (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\express\lib\router\index.js:275:10) at SessionStrategy.strategy.pass (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:343:9) at SessionStrategy.authenticate (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\strategies\session.js:75:10) at attempt (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:366:16) at authenticate (D:\Thomas\Documents\discord-bot-dashboard-master\node_modules\passport\lib\middleware\authenticate.js:367:7)

Thank you in advance for your help !

Writing a documentation

A documentation would help contributors and bot developers who want to use the dashbaord to know how to use it correctly.

It also helps to troubleshoot problems easier.

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.