README
I added pterodactyl v1 support to nodeactyl
Promo to Linux123123 for making readme in concept with EiskalterFreund
Credits to BearTS
How to install?
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
And now you are ready to go!
How to use?
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('server_id').then((response) => {
// and now functions with response for example "consle.log(response)" or what you want
})
admin.FUNCTIONNAME(<NEEDED VALUES>).then((response) => {
})
https://docs.nodeactyl.xyz/
NOTE: You can use every function from original nodeactyl:How our Version numbers work:
- The first number means the release number.
- The second number means function release.
- The third number means Bug fix version code.
Example: 1.2.4 = Release one, function update two, bug fix update two.
--------------------------------------------------------------------------------------------------Disclaimer
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!