wallopthecat / discord-bot-node

Discord music bot with webinterface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Music Bot with Webinterface

Node.js 12.0.0 or newer is required.

Create .env file or set environment variables in commandline and add NODE_ENV=production to disable .env file.

TOKEN=<discord token>
OWNER=<Discord owner User Id>
URL=<url of this server in format http(s)://foo.bar>
PORT=<port to start server on>
PREFIX=<Discord bot command prefix>

Build the server first then the client.

> npm install
> npm run build --prod
client> npm install
client> npm run build --prod
> node ./bin/www

If you access the WebUI via localhost it will try to access the server on localhost:3000, for development.

Docker

Or run with Docker:

docker run -d -p 80:80 --restart unless-stopped --name discord-bot-node -e NODE_ENV=production -e PORT=80 -e TOKEN=<discord token> -e OWNER=<discord owner id> -e URL=<url e.g http(s)://foo.bar> -e PREFIX=<prefix e.g !> alexanderwyss/discord-bot-node:latest

Web UI

The Web UI can be used by multiple Users concurrently. Web UI Tested with Firefox & Chrome.

About

Discord music bot with webinterface


Languages

Language:TypeScript 83.6%Language:HTML 8.0%Language:SCSS 4.2%Language:JavaScript 4.0%Language:Dockerfile 0.3%