Kyrluckechuck / TFT-Bot

Automate Teamfight Tactics (TFT) for token/mission farming. Updated for Set 8.5!
GNU Affero General Public License v3.0
50 stars 7 forks source link

Increase Client Error Handling Robustness #149

Closed akshualy closed 1 year ago

akshualy commented 1 year ago

Fixing everything

Description

Now always waits for an internet connection before starting the league client. The reason is that the Rito Client also checks for internet, and we did not have a check yet.

It also replaces some of the sys.exit calls with restart_league_client.

Fixes #147, I hope?

Notes

I'd love to get check_if_client_error integrated with LCU (which should effectively take care of any error the client could throw at us), but I rarely run into client errors while physically present. I checked the LCU explorer but couldn't find anything at first glance (even though I did find that we can create arbitrary boxes and notification pop-ups ourselves, lol), so if you run into a box yourself, I'd love for you to see if you can find something with the explorer :)