Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
581 stars 170 forks source link

Reconnecting makes the bot idle for some reason #463

Open racontre opened 1 year ago

racontre commented 1 year ago

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 commented 1 year ago

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

https://github.com/Merubokkusu/Discord-S.C.U.M/issues/454#issuecomment-1437411621

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