ZeNyfh / gigavibe-java-edition

Music + Media bot made in java using JDA and Lavaplayer.
GNU General Public License v3.0
8 stars 3 forks source link

Add queue recovery system #162

Closed ZeNyfh closed 2 months ago

ZeNyfh commented 2 months ago

Is your feature request related to a problem? Please describe. When the bot auto-updates (or is manually rebooted), any existing queues in guilds will be wiped, which is annoying since the bot reboots in approximately 2 seconds.

Describe the solution you'd like There is already a way to load tracks from files here and would be very simple to implement. Simply saving each guild's current queue, before the main thread is killed, using the same code in CommandExport into maybe config/queues with guildID.txt as the filename. A simple check on boot can then reconnect and re-queue the old queue as necessary.

ZeNyfh commented 2 months ago

a new commit should make this only apply to manual updates 👍