Introduction
PteroStats is a bot designed to check Pterodactyl Panel and Nodes status and post it to your discord server
Example
Installation
Getting API key from pterodactyl
Warning
The use of Application API keys are deprecated, you should use Client API keys in the config file
-
Go to your
Pterodactyl Paneland go toAccount Page.
-
Click on the
API Credentialsbutton
-
Fill the
Descriptionand click on theCreatebutton
-
Copy the API key.
-
Paste the panel API key and panel url at the config
Creating Discord Bot
Please refer to this website
Paste the bot token at the config
Inviting Discord Bot
Please refer to this website
Getting Channel ID
-
Enable Developer Feature at your discord settings
-
Right Click text channel and select
Copy ID
-
Paste the channel id at the config
Starting bot
- Make sure you have done the things above
- Run
npm installin the root directory of the bot files. - Run
node indexand you are done.
if you need help contact me on discord @hirzidevs or join our discord support server
Using Custom Emoji
-
type
\in server that has custom emoji you want
-
Select custom emoji you want
-
Copy the text!
-
Paste the emoji id at the config
Blacklist Nodes
-
Select node from node list on admin page
-
Check the url and copy the node id
-
Paste the id to the blacklist on config
You can add more than one node in the blacklist
The node is online but the embed is read as offline
If you having this issue, you can enable log_error on the config file and report it to our discord server at Support Server
Docker
This is a guide to run the bot using docker (alternative way to run the bot)
Installation
curl -fsSL https://get.docker.com | sh
Docker Compose
Copy the docker-compose.yml file to your server and run docker compose pull
Copy the config.yml file at the same directory as the docker-compose.yml file and configure it (refer to the installation section)
docker compose up -d
docker compose logs -f pterostats
Docker Run
docker run -d --name pterostats -v $(pwd)/config.yml:/app/config.yml ghcr.io/hirzidevs/pterostats:latest
docker logs -f pterostats
