mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
1.9 KiB
1.9 KiB
Discord notifications
Allow to send notifications to your Discord channel.
Configuration
!!! example "File"
yaml notif: discord: webhookURL: https://discordapp.com/api/webhooks/1234567890/Abcd-eFgh-iJklmNo_pqr mentions: - "@here" - "@everyone" - "<@124>" - "<@125>" - "<@&200>" timeout: 10s templateTitle: "{{ .Entry.Image }} released" templateBody: | Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
| Name | Default | Description |
|---|---|---|
webhookURL1 |
Discord incoming webhook URL | |
mentions |
List of users or roles to notify | |
timeout |
10s |
Timeout specifies a time limit for the request to be made |
templateTitle1 |
See below | Notification template for message title |
templateBody1 |
See below | Notification template for message body |
!!! abstract "Environment variables"
* DIUN_NOTIF_DISCORD_WEBHOOKURL
* DIUN_NOTIF_DISCORD_MENTIONS (comma separated)
* DIUN_NOTIF_DISCORD_TIMEOUT
* DIUN_NOTIF_DISCORD_TEMPLATETITLE
* DIUN_NOTIF_DISCORD_TEMPLATEBODY
Default templateTitle
[[ config.extra.template.defaultTitle ]]
Default templateBody
[[ config.extra.template.defaultBody ]]
Sample
-
Value required ↩︎

