Malikil / PYOP-Checker

This is the bot used in the Pick Your Own Pool osu! tournament for handling teams and mappool submissions.
0 stars 1 forks source link

Handle certain components not connecting properly #103

Closed Malikil closed 3 years ago

Malikil commented 4 years ago

When certain components don't connect properly, ie discord/osu/mongodb/google, try to avoid crashing the whole bot.
There should be some way to check whether that component is working properly before attempting to use it, and if it doesn't connect properly in the first place then don't crash, just silently wait for the next restart in a day.

Malikil commented 4 years ago

A connection catch has been added to the discord component. I'm not sure exactly if that's enough to handle any connection issues that might happen, but it should handle the ones on startup.

Malikil commented 3 years ago

With the new commands system I'm a little more comfortable that issues from connections will be handled. Gonna close this until everything breaks again.