Skip to content

A Discord music bot that's easy to set up and run yourself

License

Notifications You must be signed in to change notification settings

Helohacke/Music-Disc

 
 

Repository files navigation

music_disc

Music Disc

GitHub package.json version GitHub

Discord.js v14 Music Bot

Supports YouTube, Spotify, SoundCloud streams.

Reference version

node.js v18.14.2
discord.js v14.7.1

Deploying with node.js

Clone the repository

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

or click here to download

Install the dependencies

install all the dependencies from package.json

npm install

Configure environment

.env

TOKEN = "your_token"
NAME = "Music Disc"
PREFIX = "+"
PLAYING = "+help | music"
COLOR = "#FFFFFF"
DEFAULT_VOLUME = 50
MAX_VOLUME = 100
AUTO_LEAVE = true
AUTO_LEAVE_COOLDOWN = 5000
DISPLAY_VOICE_STATE = true
PORT = 33333

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.

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

version: '3.8'
services:
  music-disc:
    image: hmes98318/music-disc:1.3.0
    container_name: music-disc
    restart: always
    environment:
      TOKEN: "your_token"
      PREFIX: "+"
      PLAYING: "+help | music"
      COLOR: "#FFFFFF"
      DEFAULTVOLUME: 50
      MAXVOLUME: 100
      AUTO_LEAVE: "true"
      AUTO_LEAVE_COOLDOWN: 5000
      DISPLAY_VOICE_STATE: "true"
    ports:
      - 33333:33333

Start the container

docker-compose up -d

Deploying with Replit

Watch it by clicking on the image down below
Music-Disc-with-Replit

About

A Discord music bot that's easy to set up and run yourself

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Other 0.8%