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

Bot eventually stops working #263

Open
ghost opened this issue Sep 30, 2023 · 7 comments
Open

Bot eventually stops working #263

ghost opened this issue Sep 30, 2023 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2023

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

@vivinano
Copy link
Owner

vivinano commented Sep 30, 2023 via email

@ghost
Copy link
Author

ghost commented Sep 30, 2023

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
Copy link
Author

ghost commented Oct 7, 2023

image

@ghost ghost closed this as completed Oct 7, 2023
@ghost
Copy link
Author

ghost commented Dec 3, 2023

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

@ghost ghost reopened this Dec 3, 2023
@HentaiRyuu
Copy link

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
Copy link
Owner

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

@HentaiRyuu
Copy link

HentaiRyuu commented Apr 2, 2024

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

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