Git Product home page Git Product logo

raznar-pterodactyl's Introduction

๐Ÿ”ง 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

raznar-pterodactyl's People

Contributors

notyusta avatar raznarbuss avatar hansputera avatar jeffryafandi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.