CloudBot
CloudBot copied to clipboard
We need to limit reconnect attempts
Right now if the bot fails to connect to a network or loses connection, it continues trying to reconnect as fast as it possibly can. For obvious reasons, this can be a problem and lead to the network blocking connections, which results in even more connection attempts!
I tried adding asyncio.sleep to the connection_lost method but apparently asyncio doesn't like that (it broke the bot), so see what you can do, I guess :+1: