Exit on IRC read error (ping timeout) #63
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heni/discord-irc!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "exit-on-read-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The bot sometimes gets a ping timeout on Libera and fails to reconnect, appearing as a generic "read error" in the logs.
Solution
Promote the error output to show all metadata and allow for optional
exitOnReadErrorlogic.When this config property is set to true, the bot will terminate the program when a ping timeout occurs. This is intended for use with docker, k8s, or systemd environments where some management software will restart the discord-irc program or container automatically on exit.