Lavamusic is a Discord music bot that uses Discord.js, lavalink-client, and TypeScript.
Invite Lavamusic
Β·
Report Bug & Request Feature
Note: You need to install the plugins to use these sources
To Setup a Lavalink server on Windows, Linux, or Replit, Click Here!
Join our Discord Server and ask for help in the #support
channel!
Before starting with the installation, you need to have the following:
git clone https://github.com/appujet/lavamusic.git
cd lavamusic
npm i
Copy the .env.example
file to .env
and fill in all required values
Copy the example.<The data source you want to use>.schema.prisma
file to schema.prisma
in prisma
folder
Note: If you want to use sqlite, skip this step.
If you are using a different data source, don't forget to fill in the DATABASE_URL
value in .env
.
Generate the Prisma client:
npm run db:push
npm run db:migrate
Note: You can also run run.bat
to easily run the bot on Windows.
npm start
Generate an invite link for your bot and invite it to your server using the Discord Developer Portal or Permissions Calculator.
This section assumes you have Docker and Docker Compose installed and running correctly. Edit docker-compose.yml and make sure to set the following variables: Your .env file should look like this or you can use the .env.example file.
TOKEN="." # Your bot token and remember, don't show everyone your bot token
DEFAULT_LANGUAGE= "EnglishUS" # Default language for bot
PREFIX="!" # Your prefix
OWNER_IDS=["859640640640640640","859640640640640640"] # Your discord id, you can add multiple ids
GUILD_ID="859640640640640640" # Your server ID (if you want to use it for a single server)
For more information how to fill all the variables go to this page. You do not need to edit anything like the LAVALINK_SERVERS, DATABASE_URL and the ports unless you know what you're doing. After saving your changes you can open a terminal and go to the same location as the docker-compose.yml file. Then run the following:
docker-compose up -d
The above command will start all your services and your bot should be up and running! If you want to run it from the console, remove the -d argument.
To update, you only have to type the following:
docker-compose up --force-recreate --build -d
image prune -f
You can automate this by using Watchtower. The following should be sufficient:
docker run --detach \
--name watchtower \
--volume /var/run/docker.sock:/var/run/docker.sock \
--restart on-failure \
containrrr/watchtower --cleanup
Do note that the bot will restart itself to update to the latest!
A tutorial has been uploaded on YouTube. Watch it by clicking here.
Thank you for your interest in contributing to Lavamusic! Here are some guidelines to follow when contributing:
Distributed under the GPL-3.0 license. See for more information READ.
Do you like this project? Support it by donating!