Closed samuri51 closed 3 years ago
Why did you close this ? did you find what was going on ?
Not sure if it could be related to:
didn't figure it out i just decided to try running it in debugger / repl mode to see if anything gets lost over time :). the code (should) let the bot come back if it gets booted to the lobby. someone told me this was happening on their own bot though so i'm not sure if it's the code, the api, or the website.
but i am trying to find out! it can take a couple weeks to see it happen so it might take me some time to gather any data haha.
posting this here because i'm not sure where it belongs....
I currently use this code to have my bot to reconnect it's room on disconnect
Assumptions about it: There are two types of disconnects, ones where you are authenticated and ones where you aren't.
not authenticated: not in the room so reconnect
authenticated: i use chatting activity for this. If i see no chatting for 30 minutes I may or may not be in the room. so I attempt to say "ping". if ping doesn't go through then i'm not in the room so reconnect.
it seems to work.... till it doesn't. after about 10-20 days the bot gets lost and doesn't respond to input anymore without a hard reset, despite the fact that the program itself is still running.
any ideas on what might be happening? Thanks.