From 5607de40092629f95c999dcee90da3ac34483cad Mon Sep 17 00:00:00 2001 From: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com> Date: Thu, 17 Mar 2022 13:37:51 +0530 Subject: [PATCH] Discord Notify Changes --- notify.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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.