Skip to content

quoriel/pterodactyl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuorielPterodactyl

A convenient extension for ForgeScript that provides a complete set of functions for interacting with the Pterodactyl API (Client Category).

Installation

npm i github:quoriel/pterodactyl

Connection

const { ForgeClient } = require("@tryforge/forgescript");
const { QuorielPterodactyl } = require("@quoriel/pterodactyl");

const client = new ForgeClient({
    extensions: [
        new QuorielPterodactyl({
            "main_panel": {
                "url": "panel.example.com",
                "key": "ptlc_YourSuperSecretApiKeyHere"
            },
            "second_panel": {
                "url": "another-panel.net",
                "key": "ptlc_AnotherApiKeyFromSecondPanel",
                "headers": {
                    "User-Agent": "Quoriel/1.0"
                }
            }
        })
    ]
});

client.login("...");

Note

The key in the configuration object (e.g., main_panel) is the identifier you will use in functions to specify which panel to send the request to.

About

A convenient extension for ForgeScript that provides a complete set of functions for interacting with the Pterodactyl API (Client Category).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors