Musicbot: Reconnect on voice server crash

Created on 1 Apr 2017  路  7Comments  路  Source: Just-Some-Bots/MusicBot

Currently, if the voice server the bot is connected to crashes, the bot does not attempt to reconnect and must be manually restarted. The bot should periodically attempt to reconnect if it has been disconnected.

Most helpful comment

The library we depend on is going through a complete rewrite. It's more or less 'ready for use' which is what we've been holding out on before further developing the bot.

The rewritten version of the library has an implementation of reconnect logic that should fix these issues.

Work on MusicBot has started up again recently and changes will be published to this repo when they're ready for use. Thanks!

All 7 comments

This happens so often that the bot is essentially unusable. It would be one thing if the bot completely stopped when the voice server crashed so a script could restart it, but there appears to be no easy way of acting on the disconnect. Please implement some sort of fix for this.

@Grift Thanks. I just set up pm2 and I'll see how it goes. It seems logical however to have something as essential to the function of the bot as automatic reconnecting built in rather than as a separate, optional dependency.

Development has stopped for awhile now, perhaps it was a feature in the pipelines?

The library we depend on is going through a complete rewrite. It's more or less 'ready for use' which is what we've been holding out on before further developing the bot.

The rewritten version of the library has an implementation of reconnect logic that should fix these issues.

Work on MusicBot has started up again recently and changes will be published to this repo when they're ready for use. Thanks!

If anyone is curious, pm2 does not restart the bot in response to a voice server crash.

Recent updates to the bot may have helped deal with this issue. See how it goes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noirscape picture noirscape  路  6Comments

Quack6666 picture Quack6666  路  5Comments

MagnaMensa picture MagnaMensa  路  3Comments

monstermatt2 picture monstermatt2  路  4Comments

neeleythere picture neeleythere  路  3Comments