vivinano / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
152 stars 49 forks source link

Bot eventually stops working #263

Closed ghost closed 2 months ago

ghost commented 1 year ago

After a certain amount of time, the bot just stops claiming, meaning it can't be run overnight. Is there a fix?

vivinano commented 1 year ago

Could you send a log file with the logging set to true of when it happens wants to see if there a reconnect issue to the discord gateway Sent from my iPhoneOn Sep 30, 2023, at 6:25 AM, magicalhobo2001 @.***> wrote: After a certain amount of time, the bot just stops claiming, meaning it can't be run overnight. Is there a fix?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

ghost commented 1 year ago

Could you tell me how to do that? I'm sorry, I'm not very experienced with python and such.

Could you send a log file with the logging set to true of when it happens wants to see if there a reconnect issue to the discord gateway Sent from my iPhoneOn Sep 30, 2023, at 6:25 AM, magicalhobo2001 @.> wrote: After a certain amount of time, the bot just stops claiming, meaning it can't be run overnight. Is there a fix? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

ghost commented 1 year ago

image

ghost commented 12 months ago

Could you send a log file with the logging set to true of when it happens wants to see if there a reconnect issue to the discord gateway 

Sorry to re-open this issue two months later, but for whatever reason the bot stops working once I set the file logging to true (cmd popping up for a split second and then disappearing). Console logging works, however. image image

But looking at the console logs, I'm guessing that there is a "reconnect issue to the discord gateway." image

HentaiRyuu commented 8 months ago

I also have this issue after reinstall python (and libs) and I have no idea how to fix, but I workaround it by set bot.gateway.run(auto_reconnect=False) and use other process to run bot when it close

someone on discum repo also mention this could help, but i tried and it not working for me

try:bot.gateway.subscribeToGuildEvents(wait=1)
except:pass

the problem is when it "reconnect" gateway wont send you message or anything except heartbeat (op11) but u could still use it normally like send message, slash (rolling), etc. if you dont care about react char/kak and only grind keys, you can ignore this.

you could try replicate this problem by turn off/on your internet adapter maybe also try reinstall python (and libs)

vivinano commented 8 months ago

@HentaiRyuu did it only start happening with new python install ?

HentaiRyuu commented 8 months ago

idk, but i believe it should relate to new install somehow this issue used to happen to me year ago when i upgrade to py 3.11 then i roll back to 3.10 and it fix itself somehow now i had to reinstall OS month ago then this issue is happen to me again, but this time it happen to any ver. of python i install so i had to workaround it by use other process to run bot when it close