pterodactyl-manager
Version:
A powerful and easy-to-use API wrapper for Pterodactyl's API, providing a seamless integration of server management and user administration functionalities.
19 lines (15 loc) • 414 B
Markdown
```js
const { PteroManager } = require("./PteroManager.js")
const Ptero = new PteroManager(apiKey, url)
async function main() {
const newData = await Ptero.createUser("example@gmail.com" || 1 /* User ID */, {
"email": "newexample@gmail.com",
"username": "New username !",
"first_name": "New name",
"last_name": "New last name"
})
console.log(newData)
};
main()
```