PteroStats Banner ## Language / Bahasa [[English]](https://github.com/HirziDevs/PteroStats/blob/main/README.md) | [[Indonesia]](https://github.com/HirziDevs/PteroStats/blob/main/Indo.md)
## Introduction PteroStats is a bot designed to check Pterodactyl Panel and Nodes status and post it to your discord server ## Example - Test Panel Example - [Calvs Cloud](https://discord.gg/ssCQjhrBJN) Calvs Cloud ## Installation 1. [Getting apikey from pterodactyl](#getting-apikey-from-pterodactyl) 2. [Creating Discord Bot](#creating-discord-bot) 3. [Inviting Discord Bot](#inviting-discord-bot) 4. [Getting Channel ID](#getting-channel-id) 5. [Starting bot](#starting-bot) - [Using Custom Emoji](#using-custom-emoji) - [Blacklist Nodes](#blacklist-nodes) ### Getting apikey from pterodactyl 1. Go to your `pterodactyl admin page` and go to `Application API`. Admin Panel 2. Click on the `Create New` button Application API Page 3. Set all options permission to `read` and for description you can put whatever you want Create Application API 4. Copy the apikey. Application API List 5. Paste the panel apikey and panel url at the config Panel Config ### Creating Discord Bot Please refer to [this website](https://discordjs.guide/preparations/setting-up-a-bot-application.html) Paste the bot token at the config Bot Config ### Inviting Discord Bot Please refer to [this website](https://discordjs.guide/preparations/adding-your-bot-to-servers.html) ### Getting Channel ID 1. Enable Developer Feature at your discord settings Discord User Settings 2. Right Click text channel and select `Copy ID` Right Click Channel 3. Paste the channel id at the config Channel Config ### Starting bot 1. Make sure you have done the things above 2. Run `npm install` in the root directory of the bot files. 3. Run `node index` and you are done. if you need help contact me on discord `Hirzi#8701` or join [our discord support server](https://discord.gg/zv6maQRah3) ### Using Custom Emoji 1. type `\` in guild that has custom emoji you want Type \ on the chat 2. Select custom emoji you want Select Custom Emoji 3. Copy the text! Copy Emoji ID 4. Paste the emoji id at the config Status Config ### Blacklist Nodes 1. Select node from node list on admin page Nodes List 2. Check the url and copy the node id Node Id 3. Paste the id to the blacklist on config Blacklist Config You can add more than one node in the blacklist Blacklist Config ## 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](https://discord.gg/zv6maQRah3) ## Links - [PteroStats DiscordJS v13](https://github.com/HirziDevs/PteroStats/tree/3d0512c3323ecf079101104c7ecf3c94d265e298) - [PteroStats DiscordJS v12](https://github.com/HirziDevs/PteroStats/tree/bcfa266be64dda11955f0bf9732da086bcea522c) - [Pterodactyl Panel](https://pterodactyl.io) - [Pterodactyl Api Documentation](https://dashflo.net/docs/api/pterodactyl/v1/) - [Pterodactyl Discord Server](https://discord.gg/pterodactyl) - [PteroBot Support Server](https://discord.gg/zv6maQRah3) - [PteroBot Support Server (Indonesia)](https://discord.gg/EYaFB7WSg6)