shipgirlproject / Shoukaku

A stable, powerful and updated wrapper around Lavalink
https://guide.shoukaku.shipgirl.moe/
MIT License
273 stars 84 forks source link

When restarting the bot and leaving Lavalink running it wont reconnect to the old player #118

Open JoniXTech opened 1 year ago

JoniXTech commented 1 year ago

When you try to leave Lavalink running (with a player running) and restart the bot, it won't reconnect to the player that is running rather create a new one. So the old player which is running cant be controlled anymore until it has a timeout.

Would it be possible to reconnect to the old player and control it again?

Deivu commented 1 year ago

You need to create your own resuming system in this case, you need to "redo the players as they are" before you shutdown your bot, save it somewhere (database, file, or redis, your choice), then before shoukaku connects, you need to populate the players per node manually by creating it from the data you saved