Giter Club home page Giter Club logo

music-disc's Introduction

music_disc

Music Disc

GitHub package.json version GitHub

Discord.js v14 Music Bot

Supports YouTube, Spotify, SoundCloud streams.

Reference version

node.js v18.16.0
discord.js v14.11.0

Deploying with node.js

Clone the latest version of the repository

git clone -b v1.4.2 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"
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

version: '3.8'
services:
  music-disc:
    image: hmes98318/music-disc:1.4.2
    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
Music-Disc-with-Replit

music-disc's People

Contributors

hmes98318 avatar imwezz avatar neptalu0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.