1.0.2 • Published 1 year ago

wisp-wrapper v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

WISP-WRAPPER

About

wisp-wrapper is a package that helps you interact with the WISP API by abstracting the communication process. This library is still in development, so we will keep updating it.

Usage

Here is an example usage of this package.

// Requiring the package
const wispwrapper = require("wisp-wrapper");

// Creating a new panel
const panel = new wispwrapper.Panel();

// Trigerred when connection is established
panel.on("ready", () => {
    // All your servers
    const servers = panel.servers;

    servers.forEach((server) => {
        const serverName = server.name;
        const serverUUID = server.uuid;
        const serverUUIDShort = server.uuid_short;

        console.log(`${serverName}'s UUID is ${serverUUID} (Short UUID: ${serverUUIDShort})`);
    });
});

// Replace the "DOMAIN-NAME" with the domain name of the game panel your using
// Replace the "API-TOKEN" with the API TOKEN that you can get from your game panel
panel.connect("DOMAIN-NAME", "API-TOKEN")

Contributing

If you encounter any issue, confusion or a lacking feature, feel free to contribute to our package!

Support

If you need help understanding something about the package, join our Discord server to get some support! We will be glad to help you!

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago