mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-31 14:25:37 +00:00
Discord Notify Changes
18
notify.md
18
notify.md
@@ -534,7 +534,23 @@ export WEIXIN_WORK_KEYWORD =acme
|
|||||||
acme.sh --set-notify --notify-hook weixin_work
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user