Skip to main content
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

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
2

Go to webhooks

Select Integrations, then View Webhooks or Create Webhook.
Integrations page with webhook options
3

Copy the webhook URL

Create a new webhook and select Copy Webhook URL.
Copy Webhook URL button
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.
config.yml
Notifier enabled in config
Webhook URL in config
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