poisonthepower / BotMaster

Simplify Discord Bot and Node.js Script Management with this tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Bot Panel - DBP

Image

What's New?

  • New & Better UI
  • New stat charts & graphs
  • Web-based terminal/shell added
  • Updated .env, new setting options added
  • License changed from CC-BY-4.0 to MIT

Installation

Standard Installation

## Install PM2 Globally
npm i pm2 -g
## Install forever Globally
npm i forever -g
## Download Code
git clone https://github.com/jareer12/DiscordBotPanel.git
## Open the folder
cd DiscordBotPanel
## Install Required Modules
npm install
### Rename .env
mv .env.example .env

Docker Compose

## Clone this repository
git clone https://github.com/jareer12/DiscordBotPanel.git

## Rename .env - Change everything to your liking except PORT
mv .env.example .env

Demo

https://server.jubot.site/

Username: admin
Password: admin

Env config

Once installation is done, you can change the .env.example file name to .env and configure it to your liking.

Login System

By default the login system is disabled but you can enable it by changing LOGIN_REQUIRED=false to LOGIN_REQUIRED=true in your .env file. Credentials can be set from the env too.

Final Setup

Once the installation and configuration is complete we can start our panel and run it. We'll be using forever to run the panel, the reason we'll use forever is that it can prevent downtime, so in case our panel runs into and error that it can not handle(which it most likely will), forever will re-start the panel by itself, preventing downtime.

Standard (non-docker)

## Open the folder
cd DiscordBotPanel
## Run the panel
forever start index.js
## This can also be used but is not recommended
cd DiscordBotPanel && node .

Docker Compose

docker compose up -d

Nginx Config

server  {
    listen 80;
    server_name    server.jubot.site; ## Your Server

    location / {
        proxy_pass         http://localhost:2278; ### Replace "2278" With Your Port(If You Changed).
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection "upgrade";
        proxy_set_header   Host $host;
    }
}

About

Simplify Discord Bot and Node.js Script Management with this tool.

License:MIT License


Languages

Language:JavaScript 88.8%Language:HTML 8.7%Language:CSS 2.4%Language:Shell 0.1%Language:Dockerfile 0.0%