Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnecting makes the bot idle for some reason #463

Open
racontre opened this issue Mar 16, 2023 · 1 comment
Open

Reconnecting makes the bot idle for some reason #463

racontre opened this issue Mar 16, 2023 · 1 comment

Comments

@racontre
Copy link

Basically, whenever I drop the connection either intentionaly or on accident my bot stops doing anything, even if I call a function that tells the gateway to do something.
I run this function in a loop. It works for the first server, but then becomes idle:
image

Here is an example of how it looks.
Sorry for the poor screenshot
image
image

@reconSuave
Copy link

I think you’re probably having the same issue as here:

#454 (comment)

try sending op14 to the second server using bot.gateway.SubscribeToGuildEvents(), you will get a KeyError but just wrap that in a try/except and let it pass, it should still work. See that issue I linked for more info, I think that might solve the problem for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants