Discord Notify Changes

master
Anagh Kumar Baranwal 2022-03-17 13:37:51 +05:30
parent da64804b98
commit 5607de4009
1 changed files with 17 additions and 1 deletions

@ -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.