Notifiers are used to send notifications to external services or log interactions to the app log.
This is the multi-page printable view of this section. Click here to print.
Notifiers
Interaction notifiers
1 - App Log
Log to application log
Structured loggoing output
time=2025-02-26T14:57:03.838-07:00 level=INFO msg="InteractionEvent received" xodbox.pkg=github.com/defektive/xodbox/pkg/notifiers/app_log details="HTTPX: GET /l/face from 127.0.0.1:56407"
Configuration
Key | Values |
---|---|
notifier | Must be app_log |
2 - Discord
Discord notification
Configuration
Key | Values |
---|---|
notifier | Must be discord |
url | Webhook URL |
author | Username to appear in slack. (optional) |
author_image | Emoji code to use for user’s avatar. (optional) |
3 - Slack
Slack notifications
Configuration
Key | Values |
---|---|
notifier | Must be slack |
url | Webhook URL |
author | Username to appear in slack. (optional) |
author_image | Emoji code to use for user’s avatar. (optional) |
channel | Channel to post to, can be a user’s ID. (optional) |
4 - Webhook
Generic HTTP Webhook
Post logic is used by the Slack and Discord webhooks.