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

Spacey4K/music-disc

 
 

Repository files navigation

music_disc

Music Disc

GitHub package.json version GitHub

Discord.js v14 Music Bot

Supports YouTube, Spotify, SoundCloud streams.

Commands

  • +back/rewind
  • +filter/f
  • +leave/stop
  • +loop/lp
  • +nowplaying/np
  • +pause
  • +ping
  • +play/p
  • +time/t
  • +queue/q, list
  • +remove/r
  • +resume
  • +save
  • +search/find
  • +server
  • +shuffle/random
  • +skip/s
  • +status/usage
  • +volume/v

Reference version

node.js v18.12.1
discord.js v14.6.0

Deploying with node.js

Clone the repository

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

or click here to download

Install the dependencies

auto install all dependencies on package.json

npm install

Configure environment

config.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
GUILD_ID = ""

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.
GUILD_ID : ID of the server you want to deploy slash commands to.

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.2.5
    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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Other 0.7%