professor-l / classic-tetris-project

A Discord and twitch bot for Classic Tetris Monthly
MIT License
23 stars 23 forks source link

fix/log twitch crashing #105

Closed fractal161 closed 8 months ago

fractal161 commented 10 months ago

when doing local testing, i discovered that if twitch sends a disconnect message, the bot ceases to work on twitch as expected, but there's no indication of this in the logging (and the discord side continues to work). i think that this is the behavior that we've been observing whenever the bot goes down on twitch.

this pr adds logs for every message that twitch sends to the bot, with the hope of providing more useful information for nailing down the actual problem. as a bandaid fix, i wonder if we could restart the twitch client in an event_handler for disconnect.

fractal161 commented 8 months ago

uhh no longer just logging, i attempt to fix the issue. have not tested this locally, but the changes are small.

fractal161 commented 8 months ago

aight we're rolling with this lmao, hope nothing breaks