# PteroStats ![GitHub](https://img.shields.io/github/package-json/v/HirziDevs/PteroStats?style=flat-square) ![GitHub](https://img.shields.io/github/license/HirziDevs/PteroStats?style=flat-square) ![img](https://media.discordapp.net/attachments/796259732683227157/861126504246411264/20210704_130856.jpg) ## Introduction PteroStats is a bot designed to check Pterodactyl Panel and Nodes status and post it to your discord server - Written in Javascript, CloudServer is faster and more stable. - PteroControl can be used with any server on Pterodactyl, irregardless of whether it's on shared hosting or your own hosted panel PteroStats is still **under development** and we welcome contributions. ### How it works? PteroStats checks [pterodactyl](https://pterodactyl.io) nodes wings with [axios](https://www.npmjs.com/package/axios) to get nodes wings status, if the api didn't reply that mean the node is having [wings/daemon](https://pterodactyl.io/wings/1.0/installing.html) down and mark the node as offline ### Screenshot - [**ItzyStore**](https://discord.gg/PS4Mf6DBzt) (No screenshot for resource becouse it will be long image) ![img](https://media.discordapp.net/attachments/796259732683227157/863359897210060820/IMG_20210710_164939.jpg) - [**SpaceCloud**](https://discord.gg/28z8CYmPEY) ![img](https://media.discordapp.net/attachments/586738538448420881/866624597171372032/IMG_20210719_171633.jpg) ## Installation - `fill in the required informations in the config.yml file` - `Run npm install in the root directory of the bot files` - `Run node index.js and you are done` if you need help contact me on discord `Hirzi#8701` or join [our discord server here](https://discord.gg/zv6maQRah3) ### Setuping Config You need to put right config to make the bot work at [config.yml](https://github.com/HirziDevs/PteroStats/blob/main/config.yml) file ``` # PteroStats config # If you need help, join our discord server: https://discord.gg/zv6maQRah3 # Bot Info's token: 'BOT TOKEN' # Put bot token here, check https://discord.dev to create and get bot token botstatus: enable: false # Enable Custom Status (MUST BE "true" OR "false") text: 'Hosting Panel' # Bot Status Message type: 'WATCHING' # Bot Status Type. Ex: PLAYING, WATCHING, LISTENING, STREAMING # Channel and RefreshTime Configuration channel: 'CHANNEL ID' # Put channel id here where the embed will be sended refreshtime: 60 # Time when the embed edited/refreshed (MUST BE A SECONDS) (RECOMMENDED MORE THAN 20 SECONDS) # Panel Info's panel: url: 'HOST PANEL LINK' # Put panel url here. Example: https://panel.purenodes.net adminkey: 'ADMIN APIKEY' # Put Admin Apikey here. check https://your.host.url/admin/api (your.host.url is an example link) to get the Admin ApiKey # Embed Configuration embed: title: 'EMBED TITLE' # Embed Title here. Ex: PureNodes Stats color: 'E5BE11' # Embed Hex color here. description: enable: false # Enable Embed Description (MUST BE "true" OR "false") text: 'EMBED DESCRIPTION' # Embed Description footer: enable: true # Enable Embed Footer (MUST BE "true" OR "false") text: 'By Hirzi#8701' # Embed Footer timestamp: true # Enable Embed TimeStamp (MUST BE "true" OR "false") # Status Message Configuration status: online: ':green_circle: Online' # Message if the status is Online offline: ':red_circle: Offline' # Message if the status is Offline check: ':orange_circle: Checking' # Message if the status is Checking # Node Resource resource: enable: false # Enable resource option ex [Ram: 2gb/5gb] bellow node name (MUST BE "true" OR "false") servers: true # Enable Total server on the node to resource text (MUST BE "true" OR "false") allocations: true # Enable Total Allocation on the node to resource text (MUST BE "true" OR "false") location: true # Enable location short name on the node to resource text (MUST BE "true" OR "false") unit: 'gb' # Must be 'mb', 'gb', or 'percent' # Developers feature debug: false # Enable and Disable debug log to console debugaxios: false #Enable and Disable axios error logs ``` ## Other ### FAQ Q: Can i use pterodactyl v0.7? A: No, the pterodactyl v0.7 is not supported - Q: How much nodes can i add? A: You can add as much your panel have - Q: How i can get support? A: You can join our [discord server](https://discord.gg/zv6maQRah3) ### Links * __[PteroBot Discord](https://discord.gg/zv6maQRah3)__ * __[Pterodactyl Panel](https://pterodactyl.io)__ * __[Pterodactyl API](https://dashflo.net/docs/api/pterodactyl/v1)__