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 Stops working after some time #481

Open
Ahrirg opened this issue Feb 24, 2024 · 1 comment
Open

Bot Stops working after some time #481

Ahrirg opened this issue Feb 24, 2024 · 1 comment

Comments

@Ahrirg
Copy link

Ahrirg commented Feb 24, 2024

trying to make bot that reads all of messages that are sent to the guild, and rewrites them in one channel on another guild
After some time(varries, sometimes 10 mins, sometimes 3 hours), bot just plainly stops writing, just printing

[gateway] > {'op': 1, 'd': 30}
[gateway] < {'t': None, 's': None, 'op': 11, 'd': None}

@Nixeld
Copy link

Nixeld commented May 20, 2024

I think this is a problem with Discum auto reconnect. Workaround for this is to set auto reconnect to false and restart the bot using other methods.

bot.gateway.run(auto_reconnect=False)

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