diff --git a/notify.md b/notify.md index 8caa9d2..aa6941a 100644 --- a/notify.md +++ b/notify.md @@ -534,7 +534,23 @@ export WEIXIN_WORK_KEYWORD =acme acme.sh --set-notify --notify-hook weixin_work ``` -TODO +## 19. Set notification for Discord Webhooks + +First get your [Discord Webhook URL](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks), then set it in your systems environment: + +```sh +export DISCORD_WEBHOOK_URL="..." +export DISCORD_AVATAR_URL="..." # if empty, defaults to the defined avatar +export DISCORD_USERNAME="..." # if empty, defaults to the defined username +``` + +Ok, let's set notification hook: + +``` +acme.sh --set-notify --notify-hook discord +``` + +The `DISCORD_WEBHOOK_URL`, `DISCORD_CHANNEL` and `DISCORD_USERNAME` will be saved in ~/.acme.sh/account.conf and will be reused when needed.