add functionality and refactor the code

This commit is contained in:
2024-08-31 08:19:41 +00:00
parent 32d9bc96b5
commit be78e17fb9
7 changed files with 207 additions and 76 deletions

View File

@@ -0,0 +1,18 @@
import filesModule from "./files";
import helpersModule from "./helpers";
class Pterodactyl {
server_id: string;
api_key: string;
files: any;
helpers: any;
constructor(server_id: string, api_key: string) {
this.server_id = server_id;
this.api_key = api_key;
this.files = filesModule(this);
this.helpers = helpersModule(this);
}
}
export default Pterodactyl;