THIS PACKAGE HAS BEEN DEPRECATED, USE pteroly
I added pterodactyl v1 support to nodeactyl
Promo to Linux123123 for making readme in concept with EiskalterFreund
Credits to BearTS
Install using npm
:
npm install nodeactyl-v1-support
Then paste this inside your YOURAPP.js
:
const node = require('nodeactyl-v1-support');
const client = node.Client
const admin = node.Admin
To login to your Pterodactyl panel use:
client.login('YOUR HOST', 'YOUR CLIENT API KEY', (logged_in, msg) =>
{
console.log('Log in status CLIENT: ' + logged_in) // return a Boolean (true/false) if logged in.
if (!logged_in) {
console.log(msg.split("(Application)")[0] + "(CLIENT)") // logs the error
}
})
// This only if you have an admin api key
admin.login("YOUR HOST", "YOUR ADMIN API KEY", (logged_in, msg) => {
console.log("Log in statu ADMIN: " + logged_in) // return a Boolean (true/false) if logged in.
if (!logged_in) {
console.log(msg.split("(Application)")[0] + "(ADMIN)") // logs the error
}
})
And then you can use any funtion you want:
client.FUNCTIONNAME(<NEEDED VALUES>).then((response) => {
// and now functions with response for example "consle.log(response)" or what you want
})
admin.FUNCTIONNAME(<NEEDED VALUES>).then((response) => {
})
NOTE: You can use every function from original nodeactyl: https://docs.nodeactyl.xyz/
- The first number means the release number.
- The second number means function release.
- The third number means Bug fix version code.
Example: 1.5.1 = Release one, function update two, bug fix update two.
--------------------------------------------------------------------------------------------------I am not responsible for any damages that you cause to your servers/nodes by using this API.
Remember: This API can potentially be dangerous with the ability to Delete Servers/Nodes at an instant is extremely easy!