mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Discord notif (#111)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
30
docs/notif/discord.md
Normal file
30
docs/notif/discord.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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
|
||||
timeout: 10s
|
||||
```
|
||||
|
||||
!!! abstract "Environment variables"
|
||||
* `DIUN_NOTIF_DISCORD_WEBHOOK`
|
||||
* `DIUN_NOTIF_DISCORD_TIMEOUT`
|
||||
|
||||
| Name | Default | Description |
|
||||
|--------------------|---------------|---------------|
|
||||
| `webhookURL`[^1] | | Discord [incoming webhook URL](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) |
|
||||
| `timeout` | `10s` | Timeout specifies a time limit for the request to be made |
|
||||
|
||||
## Sample
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
[^1]: Value required
|
||||
Reference in New Issue
Block a user