Files
PteroStats/guide/notifier.md
2024-11-04 06:20:46 +07:00

36 lines
1.5 KiB
Markdown

## Notifier (Discord Webhook)
Get a notification on Discord when your panel or specific nodes are currently down.
<img alt="Notifier Preview" src="https://usercontent.catto.pictures/hirzi/a2b8e36f-7448-4849-a14a-b1eb4ec8fb26.png" width="250"/>
### Enabling Notifier
Open `config.yml` and set `enable` at the notifier configuration to `true`
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/b4c3f1d0-e053-402c-8401-4de44926fce6.png" width="300"/>
### Getting Discord Webhook URL
1. Go to the channel settings of the channel you want to set for the notifier.
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/7d7712b9-d9ac-4650-83ac-21dc3f20c3fe.png" width="300"/>
2. Go to integrations and select `View Webhooks` or `Create Webhook`.
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/e251f1e9-6b46-4051-be64-1945a6eaee33.png" width="300"/>
3. Create a new webhook and copy the Webhook URL
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/e0af8410-527a-42e2-b284-48d7eb81456f.png" width="300"/>
4. Paste the Webhook URL on the webhook notifier configuration.
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/b4ec26ad-e426-434e-b8c8-27ddc2916f5f.png" width="300"/>
> [!TIP]
> You can change the webhook icon and username on the webhook settings.
<img alt="Notifier Config" src="https://usercontent.catto.pictures/hirzi/2a4f7aba-9377-4722-bf19-3b7f0cc32772.png" width="300"/>