-
Notifications
You must be signed in to change notification settings - Fork 0
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
Discord bot account offline but xud-docker-bot service running #17
Comments
Experience this issue again |
I don't understand how the discord but account can be offline in the first place, but ... will the discord account come "online" by itself or is there anything you actively need to do? Plus since this os only affecting discord notification messages and manual builds, but not auto build functionality this shouldn't be that serious. |
A short explaination about the possible reason why this issue happens: The bot application is running in a single thread which runs an event loop in it. The Discord client, HTTP server and modified images analyzing routine are all running in the same thead. That means when the analyzing routine took minutes to finish its job the Discord client may disconnect (but this still cannot explain why it does not reconnect back). So in order to make the program fully async 2 major parts need to be refactored:
After 2 days trying I found that it couldn't be done in a short time (like one day). So here are the steps I suggest we should take to resolve this issue incrementally:
|
As discussed, I think these two are enough for now. |
No description provided.
The text was updated successfully, but these errors were encountered: