Discord music bot Docker image
5.9K
A discord music bot, supports YouTube, Spotify, SoundCloud, Deezer streams and web dashboard.
Developed based on discord.js v14, LavaShark, Lavalink.
If you need the version of discord-player, please refer to this branch.
If you encounter any issues or would like to contribute to the community, please join our Discord server.
At least one Lavalink node is required to operate.
Edit the nodelist.json file to add the Lavalink node.
Only supports Lavalink v4 nodes, v4.0.8 or higher is recommended.
Please refer to this documentation for detailed information.
nodeList: [
{
"id": "Node 1",
"hostname": "localhost",
"port": 2333,
"password": "youshallnotpass"
}
]
image link : https://hub.docker.com/r/hmes98318/music-disc
If you don't have any available nodes, you need to first start the server container using Docker Compose in the server directory.
Please put your token into the BOT_TOKEN variable.
Edit config.js to configure other parameters of the bot.
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
docker compose up -d
Use the following command to start the container:
Please put your token into the BOT_TOKEN variable.
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
Content type
Image
Digest
sha256:a48f05dbc…
Size
193 MB
Last updated
29 days ago
docker pull hmes98318/music-disc:dev