Options
All
  • Public
  • Public/Protected
  • All
Menu

ractyl

๐Ÿ”ง Ractyl (Raznar Pterodactyl)

Ractyl (Raznar Pterodactyl) is an API Wrapper for Pterodactyl Panels (pterodactyl.io). This API Wrapper designed to help us on some of our projects that require integration with the Pterodactyl API.

Note, this library is still in BETA. So some functions may not be as functional as they are.

๐Ÿ’‰ Installation

You can using YARN or NPM.

With NPM

npm install ractyl

or (install from source)

npm install https://github.com/Raznar-Lab/Raznar-Pterodactyl

With YARN

yarn add ractyl

or (install from source)

yarn add https://github.com/Raznar-Lab/Raznar-Pterodactyl

๐Ÿ“œ How to use?

It's easy to use. First, import this library into your code.

๐Ÿค” How to import it?

If you're using TypeScript

import Ractyl from "ractyl";

const ptero = new Ractyl("here, put your pterodactyl panel baseurl", "here, put your apikey");

// if you're an admin
ptero.admin.servers.getAll().then(console.log).catch(console.error);

// if you're client
ptero.client.servers.getAll().then(console.log).catch(console.error);

If you're using JavaScript

const Ractyl = require("ractyl").default;

const ptero = new Ractyl("here, put your pterodactyl panel baseurl", "here, put your apikey");

// if you're an admin
ptero.admin.servers.getAll().then(console.log).catch(console.error);

// if you're client
ptero.client.servers.getAll().then(console.log).catch(console.error);

๐Ÿ‘ Congratulations, you already know how to use it. Next.

๐Ÿคจ What are the functions inside?

Inside, you can find the function of getting logs in realtime (can only be found in the client), and managing files and folders is very easy.

Explore other functions in the documentation ๐Ÿ˜Š

๐Ÿž Bugs

You can create an issue in the repository

License

MIT © Raznar

Generated using TypeDoc