> ## Documentation Index
> Fetch the complete documentation index at: https://docs.znproject.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Get downtime alerts with the notifier

> Send a Discord webhook alert when your panel or a node goes down.

The notifier posts a message to a Discord channel through a webhook when your panel or one of your nodes goes down.

![Notifier alert in Discord](https://usercontent.catto.pictures/hirzi/a2b8e36f-7448-4849-a14a-b1eb4ec8fb26.png)

## Create a Discord webhook

**1. Open the channel settings**

In Discord, open the settings of the channel where alerts should be posted.

![Discord channel settings](https://usercontent.catto.pictures/hirzi/7d7712b9-d9ac-4650-83ac-21dc3f20c3fe.png)

**2. Go to webhooks**

Select **Integrations**, then **View Webhooks** or **Create Webhook**.

![Integrations page with webhook options](https://usercontent.catto.pictures/hirzi/e251f1e9-6b46-4051-be64-1945a6eaee33.png)

**3. Copy the webhook URL**

Create a new webhook and select **Copy Webhook URL**.

![Copy Webhook URL button](https://usercontent.catto.pictures/hirzi/e0af8410-527a-42e2-b284-48d7eb81456f.png)

> [!WARNING]
>
> Anyone with the webhook URL can post to your channel. Keep it private.

## Enable the notifier

**1. Edit the config**

Open `config.yml`, set `enable` to `true` under `notifier`, and paste your URL into `webhook`.

```yaml config.yml theme={"dark"}
notifier:
  enable: true
  webhook: "https://discord.com/api/webhooks/..."
```

![Notifier enabled in config](https://usercontent.catto.pictures/hirzi/b4c3f1d0-e053-402c-8401-4de44926fce6.png)

![Webhook URL in config](https://usercontent.catto.pictures/hirzi/b4ec26ad-e426-434e-b8c8-27ddc2916f5f.png)

**2. Restart PteroStats**

Restart the app/bot so it loads the updated config.

## Customize the alert

* **Name and avatar:** change the webhook's name and icon in its Discord settings.
* **Embed:** adjust the `author`, `footer`, `timestamp`, `thumbnail`, and `image` options under `notifier.embed` in `config.yml`.

![Webhook name and icon settings](https://usercontent.catto.pictures/hirzi/2a4f7aba-9377-4722-bf19-3b7f0cc32772.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.