e-caste / boggle-telegram-bot

A Telegram bot to play boggle (ITA: il paroliere) with friends
https://t.me/boggle_paroliere_bot
GNU General Public License v3.0
1 stars 0 forks source link

Add better check for newgame timers in __check_bot_was_restarted #31

Open e-caste opened 4 years ago

e-caste commented 4 years ago

It now correctly detects games that were being played by using the ingame timers (in bot_data and in the timers variable) discrepancy.

It throws an error when the bot is restarted and a game was in the newgame state. It should correctly detect this state as well.

Labeling as enhancement since it should be a rare error which happens only if the bot gets restarted, and even then, only once.