> ## 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.

# Introduction

> Post live Pterodactyl and Pelican panel and node stats to a Discord channel, with downtime alerts and a customizable embed.

![PteroStats Banner](https://usercontent.catto.pictures/hirzi/f4607648-65a5-441d-9cd8-af845c0b82de.png "PteroStats Banner")

PteroStats is a Discord App/Bot by ZN Project Development that checks your **Pterodactyl** or **Pelican** panel stats and posts them to your Discord server. It keeps a stats message in a channel up to date, so your community can see panel and node status without opening the panel.

PteroStats runs on your own server and reads your panel with a Client API key. Everything it posts is configured in `config.yml`.

![PteroStats stats message in Discord](https://usercontent.catto.pictures/hirzi/e6f6fe6a-8c0e-4c7a-8b73-d4af752324f4.png)

![92d42b11-4897-46b5-bb1c-43349c9782d6](https://usercontent.catto.pictures/hirzi/92d42b11-4897-46b5-bb1c-43349c9782d6.png "92d42b11-4897-46b5-bb1c-43349c9782d6")

## What you can do

### Show panel and node stats

PteroStats refreshes the stats message on a set interval (10 seconds by default). It can show:

* Panel status, uptime, and host.
* Total servers and users on the panel.
* Each node's online or offline status and uptime.
* Node details such as memory and disk usage, in bytes or as a percentage.
* Server counts and node host per node.

### Customize the message

* Change the embed author, title, description, color, footer, thumbnail, and image for both the panel and nodes sections.
* Add link buttons, such as a link to your panel or dashboard.
* Set the bot's presence text, activity type, and status.
* Replace the online and offline labels with [custom emoji](https://docs.znproject.my.id/pterostats/guides/custom-emoji.md).

### Choose which nodes appear

Keep internal, test, or retired nodes out of the stats message with the [node blacklist](https://docs.znproject.my.id/pterostats/guides/blacklist-nodes.md), and set a limit on how many nodes are displayed.

### Get downtime alerts

Turn on the [notifier](https://docs.znproject.my.id/pterostats/guides/notifier.md) to post an alert to a Discord webhook when your panel or a node goes down.

## Getting started

> [!NOTE]
>
> Node.js 18 or newer is required.

1. [Create your Discord App/Bot](https://discordjs.guide/preparations/setting-up-a-bot-application).
2. [Invite your Discord App/Bot to your Discord server](https://discordjs.guide/preparations/adding-your-bot-to-servers.html).
3. [Create a panel API key](https://docs.znproject.my.id/pterostats/guides/panel-api-key.md) and [find the channel ID](https://docs.znproject.my.id/pterostats/guides/channel-id.md) where stats should be posted.
4. Install PteroStats with one of the methods below.
5. Start PteroStats and answer the setup questions in the console.

> [card] [Egg (recommended)](https://docs.znproject.my.id/pterostats/installation/egg.md)
>
> Install on your Pterodactyl or Pelican panel.

> [card] [Manual](https://docs.znproject.my.id/pterostats/installation/manual.md)
>
> Run with PM2 or the nodejs-generic egg.

> [card] [Docker](https://docs.znproject.my.id/pterostats/installation/docker.md)
>
> Run with Docker Compose or Docker Run.

To change your panel URL, API key, bot token, or channel later, see [Change your setup details](https://docs.znproject.my.id/pterostats/guides/changing-env-configuration.md).

## Reporting a bug

1. Set `log_error` to `true` in `config.yml`.
2. Check the console for the error message.
3. Report it in the [support server](https://discord.znproject.my.id) and include the `logs.txt` file created by the bot.

## Important notes

* PteroStats can only read what the API key you provide has access to. Create the key from an account with administrator access to the panel.
* Application API keys are deprecated for PteroStats. Use a Client API key.
* Never share your API key, bot token, or webhook URL.
* PteroStats is an independent project and is not affiliated with or endorsed by Pterodactyl or Pelican.

> [!WARNING]
>
> Please don't ask about PteroStats in the [Pterodactyl](https://discord.gg/pterodactyl) or [Pelican](https://discord.gg/pelican-panel) Discord servers.

For help, visit the [support server](https://discord.znproject.my.id).

Created by **ZN Project Development**.


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