Giter Club home page Giter Club logo

discord-music-24-7's Introduction

discord-music-24-7

A 24/7 music bot for Discord that pauses when nobody is listening.

Requirements

To self-host this bot, you'll need the following:

ffmpeg should be installed by default on Linux and MacOS, in case it isn't, install it with your package manager. For Windows users, head over to ffmpeg's official website to download the binary which will need to be added to your $PATH. If you don't know how to add folders to your $PATH, check out this guide.

Dependencies

Dependency: Description:
discord.js A powerful JavaScript library for interacting with the Discord API.
fs File system utilities for Node.js.
logger A small logger module for Node.js.
node-opus This module implements bindings for Opus v1.1 for Node.js.
ytdl-core Yet another youtube downloading module. Written with only Javascript and a node-friendly streaming interface.

Installation

In order to self-host this bot, first you'll need to clone this repository.

git clone https://github.com/moonstar-x/discord-music-24-7.git

Then, inside the config folder, rename the file settings.json.example to settings.json and edit the file with your own Discord Token, and the ID's of the owner and the channel where the music should be played. To see how to find these IDs, you can check out this guide. If you don't have a Discord token yet, you can see a guide on how to get one here. Your file should look like this:

{
  "discord_token": "YOUR_DISCORD_TOKEN_HERE",
  "channel_id": "1234567890",
  "owner_id": "0987654321"
}

Install the dependencies:

npm install

You can now run your bot:

npm start

Usage

The bot will automatically start playing music in the configured channel, it will also automatically pause when nobody is listening to the music to save bandwidth.

The music that is played is stored in the queue.txt inside the data folder. You can add the music you want the bot to play in this file.

Author

This bot was made by moonstar-x.

discord-music-24-7's People

Contributors

moonstar-x 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.