A dedicated open-source music bot for Zhycorp based on Jukebox.
Requires Node.JS version v12 or above.
Come here if you want to use Glitch.com instead of localhost or Heroku
- Install Node.JS and Yarn (Optional)
- Rename
.env.schema
to.env
and fill out the values (example on .env.example) - Install dependencies as stated here before you continue surfing
- Run
npm run build
, oryarn run build
if you're using Yarn package manager - Optional thing, prune devDependencies (this is good to save disk spaces):
$ npm prune --production
# or with yarn
$ yarn install --production
- Start it with
npm start
oryarn start
, and you're done!
Notes:
- You only need to configure .env file when you're using the Docker image
- If you're using "Deploy to Heroku" button, you don't need to do this.
Without optional packages
$ npm install --no-optional
# or with yarn
$ yarn install --ignore-optional
With optional packages (recommended)
$ npm install
# or with yarn
$ yarn install
For optional packages, you need to install build tools as stated here and you also need to install Git.
You can still use Glitch and keep it online in this project, no worries 😉
- Go to glitch.com and make an account
- Click New Project, and then Import from GitHub
- Please specify the field with
https://github.com/zhycorp/disc-11
, then wait for a while - Find the file names
.env.schema
then rename it to.env
, let's configure that - Get your bot token at Discord developer portal then invite it to your server, and fill the bot prefix with anything you want
- To get an YouTube API v3 Key, please watch this video carefully
- Specify another options on that file. If you don't know how, there's
.env.example
so you can know what it should looks like - After that, go to Tools > Terminal type
refresh
. - Close Terminal tab, then open Tools > Logs, wait for a while
- To make it stay online, please watch this video carefully
Your bot is online, and ready to use! If you have any questions or need support, feel free to join our Discord server.
Want to use Dockerized version of this project? Sure, we have provided them on the Docker Hub.
Docker Volumes are needed to store cache and logs persistently.
$ docker run --env-file .env --volume cache:/app/cache --volume logs:/app/logs hazmi35/jukebox
We also provide docker-compose.yml if you want to go that way.
$ docker-compose up
- A production-ready music bot, suitable for you that don't like to hassling with the code.
- Basic Commands (Help, Ping, Invite & Eval [for advanced bot owners])
- Basic Music Commands (Play, Skip, Stop, Pause & Resume, Now Playing, Queue, Repeat, Volume)
- Caching (cache youtube downloads)
- Configurable (easy to use)
- Docker-friendly (if you're advanced user)
- Lightweight (only around 150MB)
Based on discord-music-bot and reworked from jukebox