https://github.com/hmes98318/music-disc-discord-player
https://github.com/hmes98318/music-disc-discord-player
discord discord-bot discord-js discord-music-bot discord-music-bot-24-7 discordjs-v14 docker music-bot nodejs
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hmes98318/music-disc-discord-player
- Owner: hmes98318
- License: mit
- Created: 2023-12-11T15:48:08.000Z (almost 2 years ago)
- Default Branch: discord-player
- Last Pushed: 2023-12-12T18:16:07.000Z (almost 2 years ago)
- Last Synced: 2025-04-22T23:07:22.575Z (7 months ago)
- Topics: discord, discord-bot, discord-js, discord-music-bot, discord-music-bot-24-7, discordjs-v14, docker, music-bot, nodejs
- Language: JavaScript
- Homepage:
- Size: 852 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README

# discord-player version of Music Disc
A discord music bot, supports **YouTube**, **Spotify**, **SoundCloud** streams.
Developed based on [**discord.js v14**](https://discord.js.org/#/), [**discord-player**](https://github.com/Androz2091/discord-player).
If you need the version of [**Lavalink**](https://github.com/lavalink-devs/Lavalink), please refer to this [**branch**](https://github.com/hmes98318/Music-Disc).
If you encounter any issues or would like to contribute to the community, please join our [Discord server](https://discord.gg/7rQEx7SPGr).
## Deploying with node.js
### Clone the latest version of the repository
```
git clone -b v1.4.3 https://github.com/hmes98318/Music-Disc-discord-player.git
```
or [**click here**](https://github.com/hmes98318/Music-Disc-discord-player/releases) to download
### Install the dependencies
install all the dependencies from [`package.json`](./package.json)
```
npm install
```
### Configure environment
[`.env`](./.env)
```env
TOKEN = "your_token"
NAME = "Music Disc"
PREFIX = "+"
PLAYING = "+help | music"
EMBEDS_COLOR = "#FFFFFF"
DEFAULT_VOLUME = 50
MAX_VOLUME = 100
AUTO_LEAVE = true
AUTO_LEAVE_COOLDOWN = 5000
DISPLAY_VOICE_STATE = true
PORT = 33333
TEXT_QUERY_TYPE = "youtubeSearch"
URL_QUERY_TYPE = "auto"
DP_FORCE_YTDL_MOD = "play-dl"
```
Detailed description
**`AUTO_LEAVE`** : After the music finished, can choose whether let the bot leave voice channel automatically or not.
**`AUTO_LEAVE_COOLDOWN`** : Timer for auto disconnect(ms).
**`DISPLAY_VOICE_STATE`** : Show voice channel status updates.
**`TEXT_QUERY_TYPE`** : The default search engine for text search.
The following are the available options for **TEXT_QUERY_TYPE**:
autoSearch, youtubeSearch, spotifySearch, soundcloudSearch, appleMusicSearch
**`URL_QUERY_TYPE`** : The default search engine for links.
The following are the available options for **URL_QUERY_TYPE**:
auto, youtube, spotifySong soundcloud, appleMusicSong
**`DP_FORCE_YTDL_MOD`** : Streaming extractor settings. The default streaming library used is **play-dl**.
If you want to use another library, you can install one of the following libraries and change the `DP_FORCE_YTDL_MOD` setting.
$ npm install ytdl-core
$ npm install @distube/ytdl-core
## Running the script
```
npm run start
```
## Deploying with Docker Compose
**image link** : https://hub.docker.com/r/hmes98318/music-disc
### put your Token into [`docker-compose.yml`](./docker-compose.yml)
```yml
version: '3.8'
services:
music-disc:
image: hmes98318/music-disc:1.4.3
container_name: music-disc
restart: always
ports:
- 33333:33333
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"
TEXT_QUERY_TYPE: "youtubeSearch"
URL_QUERY_TYPE: "auto"
DP_FORCE_YTDL_MOD: "play-dl"
```
### Start the container
```
docker-compose up -d
```
## Deploying with Replit
Watch it by clicking on the image down below
[](https://youtu.be/WH5aSHIebcc)