-
Notifications
You must be signed in to change notification settings - Fork 49
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 disconnects itself after a while #11
Comments
Bot cannot disconnect itself or something like that. Maybe your server suspends bot process. I have bot running correctly for 24h and another for 18h. Can you setup some message logging, or/and periodic timer to print if program is running. For ex: Timer.periodic(const Duration(minute: 1), (t) => print(bot.guilds.count)); EDIT: |
I'm going to add some periodic logging and will get back to you, thanks. |
I don't understand, I've had the process opened in a terminal the whole time, it kept printing to the console but the bot still went offline.
|
I found just now problems with sessions invalidating right after |
I will do that later today yes ;-) |
Are you setting presence for your bot? Gateway disconnects me due invalid opcode when sending But bot shouldn't be disconnected due we don't have any message. |
Nope, I'm not setting the bot's presence. I'll have a look on how to set it. |
Pushed possibly fix for this problem. Please test against latest commit. |
I've update my code for the newest Nyxx version and it seems to be working on my local machine. I'll run it tonight on my server and will let you know ;-) |
The bot is still connected and responsive to commands (12h uptime) so I'd say it looks promising!
|
That's okay - ignore it. I'm just logging these to notice about them. |
Hey there, it's been a while.
I'm having issues with the bot disconnecting itself for no reason after some time of inactivity.
I'm currently running it inside a tmux session on a dedicated server on Debian 8 but the same issue occurs with Docker.
These are the only logs I've got for the bot, and as you can see it's supposed to have been running for 12 days.
However it's unresponsive to commands and is logged off
Do you have any idea or suggestion?
The text was updated successfully, but these errors were encountered: