Skip to main content
Version: dev

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
  • Set the Privileged gateway intent to allow MESSAGE CONTENT INTENT
discord_invite_permissions imagediscord_gateway_intents image

Installation

Configure node

At least one Lavalink node is required to operate.
Edit the config.json file to add a Lavalink node.

note

This bot only supports Lavalink v4 nodes.
v4.0.8 or higher is recommended.

You can refer to this document for detailed information.

[
{
"id": "Node 1",
"hostname": "localhost",
"port": 2333,
"password": "youshallnotpass"
}
]

Configure Bot

Use Docker Compose

Use the following command to start the container:

services:
music-disc:
image: hmes98318/music-disc:latest
container_name: music-disc
restart: always
environment:
TZ: "Asia/Taipei"
BOT_TOKEN: "your_token"
volumes:
- ./config.js:/bot/config.js # Bot config
- ./logs:/bot/logs # Bot logs
- ./server:/bot/server # localnode configuration file
ports:
- 33333:33333

Use Docker

Use the following command to start the container:

docker run -d \
--name music-disc \
--restart always \
-e TZ="Asia/Taipei" \
-e BOT_TOKEN="your_token" \
-v $(pwd)/config.js:/bot/config.js \
-v $(pwd)/logs:/bot/logs \
-v $(pwd)/server:/bot/server \
-p 33333:33333 \
hmes98318/music-disc:latest