-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod_discord: Add self health check to prevent relay stall.
Occasionally, it seems that the underlying libdiscord library will stop receiving messages from Discord (sending messages still works). This results in the relay only working in one direction, with IRC messages relaying to Discord, but not vice versa. This has happened several times and is usually remedied by someone noticing eventually and manually reloading mod_discord to start everything fresh. Since we can detect this, until the underlying bug is fixed, this adds the ability to periodically send test posts to a test channel and trigger a full module reload if a test post is not echoed back.
- Loading branch information
1 parent
5eedc9c
commit eec0c75
Showing
2 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters