Posts The server status from Pterodactyl panel to discord webhook
NOTE- If You dont understand this version, you can switch back to old version HERE
Clone the repository git clone https://github.com/BeeXD/pterodactyl-status-to-discord
cd pterodactyl-status-to-discord
Then write npm install
Now The Node Package Manager should install dependencies.
- Go to your Pterodactyl panel.
- Move to your Account settings.
- Write a description then allow your ip or you can leave it blank for global access.
- Now an Api Key should generate. Keep it private and secure.
- Go to
.env
and replace the text PANEL_TOKEN with the api key. - Now it should look like this.
PANEL_TOKEN=aetkAaETukhaEG135136aey
- Go to your console of Pterodactyl panel.
- The Link should be like this
https://yourWebsite.com/server/031afba1
replace yourWebsite.com with your domain. - The
031afba1
is your server id. - Go to your
.env
File. - On Line 3, Replace
SERVER_ID=
toSERVER_ID=SERVERID
. - *ps Replace SERVERID with your server id.
- Make a webhook in a channel and copy the link
- Replace
WEBHOOK_URL=
toWEBHOOK_URL=YOUR-URL
node index.js
, Now using the cron module the file will send the stats every 1 minute.
- Free free to contribute and develop the small project
- Any errors please make a issue.
Thank You! <3
Thanks To contributors
A big thanks to lying who helped me in this