Installation on Docker
Prerequisites
Create a Discord Application
- go to the Discord Developer portal
- create a new application + bot
- create a bot invite link using it's client id here
- save the bot token for later
Environment variables
- Put your token into the
TOKEN
variable. - Edit the
node-list.json
file to add a Lavalink node.
Use Docker
Use the following command to start the container:
docker run -d \
--name music-disc \
-e TOKEN="your_token" \
-e PREFIX="+" \
-e PLAYING="+help | music" \
-e EMBEDS_COLOR="#FFFFFF" \
-e DEFAULT_VOLUME=50 \
-e MAX_VOLUME=100 \
-e AUTO_LEAVE="true" \
-e AUTO_LEAVE_COOLDOWN=5000 \
-e DISPLAY_VOICE_STATE="true" \
-v ./node-list.json:/bot/node-list.json \
-v ./blacklist.json:/bot/blacklist.json \
-p 33333:33333 \
hmes98318/music-disc:2.0.2
Use Docker Compose
Use the following command to start the container:
version: '3.8'
services:
music-disc:
image: hmes98318/music-disc:2.0.2
container_name: music-disc
restart: always
environment:
TOKEN: "your_token"
PREFIX: "+"
PLAYING: "+help | music"
EMBEDS_COLOR: "#FFFFFF"
DEFAULT_VOLUME: 50
MAX_VOLUME: 100
AUTO_LEAVE: "true"
AUTO_LEAVE_COOLDOWN: 5000
DISPLAY_VOICE_STATE: "true"
volumes:
- ./node-list.json:/bot/node-list.json
- ./blacklist.json:/bot/blacklist.json
ports:
- 33333:33333