- Click the button "Deploy to Heroku" above to install
- Create an application on Heroku
- Add Java to buildpacks
- Fork this repo and deploy it to Heroku
- Uses latest release of Lavalink on (re)start
- Free to use
- Easy setup in 3 clicks
- Some knowledge of python
- Library to connect with Lavalink server Lavalink.py or Wavelink.py (you can also use other wrappers)
- Your time and mind!
-
To run this 24/7, you need to make an account on UptimeRobot service, and make HTTP request to your app every 5 minutes. For example, if your app is named
test-lavalink
then make HTTP request tohttp://test-lavalink.herokuapp.com
-
Do not forget to edit config file (application.yml)
-
Do not forget to set your password (
PASSWORD
environment variable) -
Do not change address and port in (application.yml)
-
This repo means for students who cant pay and want to work or test lavalink. You might face music lags as heroku doesnt have high cpu specs.
- Lavalink's port will be always 80, DO NOT edit port in application.yml!
- Password is in
PASSWORD
environment variable, if variable does not exist, it isyoushallnotpass
- Wavelink | Repo Link
async def start_nodes(self):
await self.bot.wait_until_ready()
await self.bot.wavelink.initiate_node(host='test-lavalink.herokuapp.com',
port=80,
rest_uri='http://test-lavalink.herokuapp.com:80',
password='youshallnotpass',
identifier='MAIN',
region='us')
# ...
- Lavalink.py | Repo Link
if not hasattr(bot, 'lavalink'): # This ensures the client isn't overwritten during cog reloads.
bot.lavalink = lavalink.Client(bot.user.id)
bot.lavalink.add_node('test-lavalink.herokuapp.com', 80, 'youshallnotpass', 'us', 'default-node') # Host, Port, Password, Region, Name
bot.add_listener(bot.lavalink.voice_update_handler, 'on_socket_response')
bot.lavalink.add_event_hook(self.track_hook)
- You can set custom Java flags in
ADDITIONAL_JAVA_OPTIONS
variable. They override default config. Do not do this if you don't know what you're doing