Added 20. Set notification for Whatsapp by CallmeBot

master
Sandeep Mittal 2022-05-07 19:59:59 +05:30
parent d04154d198
commit 2cca9f2933
1 changed files with 20 additions and 3 deletions

@ -536,7 +536,7 @@ acme.sh --set-notify --notify-hook weixin_work
## 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:
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="..."
@ -544,13 +544,30 @@ 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:
Ok, let's set the notification hook:
```
acme.sh --set-notify --notify-hook discord
```
The `DISCORD_WEBHOOK_URL`, `DISCORD_AVATAR_URL` and `DISCORD_USERNAME` will be saved in ~/.acme.sh/account.conf and will be reused when needed.
The `DISCORD_WEBHOOK_URL`, `DISCORD_AVATAR_URL`, and `DISCORD_USERNAME` will be saved in ~/.acme.sh/account.conf and will be reused when needed.
## 20. Set notification for Whatsapp by CallmeBot
First, get your [CallmeBot Webhook URL](https://www.callmebot.com/blog/free-api-whatsapp-messages/), then set it in your systems environment:
```sh
export CALLMEBOT_YOUR_PHONE_NO="..." # your phone no
export CALLMEBOT_API_KEY="..."
```
Ok, let's set the notification hook:
```
acme.sh --set-notify --notify-hook callmebotWhatsApp
```
The `CALLMEBOT_YOUR_PHONE_NO` and `CALLMEBOT_API_KEY` will be saved in ~/.acme.sh/account.conf and will be reused when needed.