mirror of
https://github.com/csmith/irc-distribution
synced 2025-12-06 03:58:25 +01:00
No description
| .github | ||
| cmd/distribution | ||
| .gitignore | ||
| CHANGELOG.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENCE | ||
| README.md | ||
Distribution IRC notifier plugin
Plugin for IRC-Bot
Receives notifications from a Distribution instance and outputs them to a channel.
- go build github.com/csmith/irc-distribution/cmd/distribution
Configuration
At a bare minimum you also need to give it a channel, a bearer token to verify received notifications on and an RPC token. You'll likely also want to specify the bot host.
Once configured the URL to configure in distribution would be /distribution, for example:
notifications:
endpoints:
- name: irc
url: https://mybothost.example/distribution
headers:
Authorization: [Bearer TheConfiguredBearerToken]
timeout: 500ms
threshold: 5
backoff: 1s
Example running
distribution -rpc-host bot -rpc-token <as configured on the bot> -channel #spam -bearer-token cUCrb7HJ