New Jukebox would be created in new
branch.
Just a simple Discord music bot
[⚠] Requires Node.JS version 16.6.0 or above.
-
Install Node.JS
-
Install requirements for yt-dlp
For Linux/Mac OS/Unix-like system, install Python 3, and add them to the PATH environment variable
For Windows, you don't need to install Python, but you need to install Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package (x86)
-
Rename
.env.schema
to.env
and fill out the values (example on .env.example) -
Install dependencies as stated here
-
Run
npm run build
-
(Optional) Prune dev dependencies (This is good to save disk spaces):
$ npm prune --production
- Start it with
npm 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
With optional packages (Recommended)
$ npm install
For optional packages, you need to install build tools as stated here and you also need to install Git
Want to use Dockerized version of jukebox? sure! we provide them on the Docker Hub and also in GitHub Container Registry
Docker Volumes are needed to store cache and logs persistently
$ docker run --env-file .env --volume cache:/app/cache --volume logs:/app/logs --restart unless-stopped hazmi35/jukebox
We also provide docker-compose.yml and docker-compose.debian.yml if you want to go that way.
There is also a docker-compose.pull.yml version, which pulls the image from Docker Hub (latest tag, alpine)
$ docker-compose up