Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Discord music bot, supports YouTube, Spotify, SoundCloud, Deezer streams and web dashboard.

License

NotificationsYou must be signed in to change notification settings

hmes98318/Music-Disc

Repository files navigation

music_disc

Music Disc

GitHub package.json versionGitHub

A discord music bot, supportsYouTube,Spotify,SoundCloud,Deezer streams and web dashboard.
Developed based ondiscord.js v14,LavaShark,Lavalink.

Features

  • Stable
  • Use Lavalink
  • Web dashboard
  • Local node
  • Docker images

If you need the version ofdiscord-player, please refer to thisbranch.

If you encounter any issues or would like to contribute to the community, please join ourDiscord server.

Deploying with node.js

Clone the latest version of the repository

git clone https://github.com/hmes98318/Music-Disc.git

orclick here to download

Install the dependencies

install all the dependencies frompackage.json

npm ci

Add Lavalink node

At least one Lavalink node is required to operate.
Edit theconfig.js file to add theLavalink node.
Only supports Lavalinkv4 nodes,v4.0.8 or higher is recommended.

Please refer to thisdocumentation for detailed information.

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

Configure Bot

Edit the.env file to set the bot token.

# Discord Bot TokenBOT_TOKEN ="your_token"

Editconfig.js to configure other parameters of the bot.

Running the script

npm run start

Deploying with Docker

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 usingDocker Compose in the server directory.

Start with Docker Compose

Please put yourtoken into theBOT_TOKEN variable.
Editconfig.js to configure other parameters of the bot.

services:music-disc:image:hmes98318/music-disc:latestcontainer_name:music-discrestart:alwaysenvironment: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 fileports:      -33333:33333

Start the docker compose

docker compose up -d

Start with Docker

Use the following command to start the container:
Please put yourtoken into theBOT_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

Development

Contributing

If you'd like to contribute to the development of Music Disc, please follow these steps:

  1. Fork the repository
  2. Create a new branch from thedev branch (all development work happens on the dev branch)
  3. Make your changes
  4. Submit a pull request to thedev branch

Please note that the main branch is only updated for releases.

Translations

Music Disc supports multiple languages. If you want to contribute translations:

  1. Read the translation guidelines insrc/locales/README.md
  2. Follow the IETF language tag format (e.g.en-US)
  3. Ensure all translation keys from the defaulten-US templates are included

About

A Discord music bot, supports YouTube, Spotify, SoundCloud, Deezer streams and web dashboard.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Contributors6


    [8]ページ先頭

    ©2009-2025 Movatter.jp