sleeyax / aternos-discord-bot

Discord bot to start & stop a Minecraft server automatically
https://hub.docker.com/r/sleeyax/aternos-discord-bot/tags
MIT License
75 stars 93 forks source link

Connection improvements #4

Closed sleeyax closed 2 years ago

sleeyax commented 2 years ago

I believe the server disconnects us when we're connected for too long, leaving us in a disconnected state resulting in the inability to start the server unless the bot is manually restarted. Should improve the (dis)connection handling to avoid issues like this.

See the following logs:

Bot is now running.  Press CTRL-C to exit.
2022/01/23 12:09:14 Timeout in closing receiving channel. Exiting....
2022/01/23 12:09:14 Background routines stopped & connections closed.
2022/03/28 14:35:37 Unknown error in receiver:  websocket: close 1005 (no status)
sleeyax commented 2 years ago

Improvements (also) made in https://github.com/sleeyax/aternos-api/tree/v0.3.0