| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
🏠 Introduction
Ptero-Bot is a powerful, and simple Node.js Discord bot built for Pterodactyl panel users.
Ptero-Bot allows server owners and users to manage their Pterodactyl servers directly from Discord.
It provides real-time server monitoring, detailed embeds, and an interactive server manager UI inside Discord.
Even if you are not the owner of the Pterodactyl panel, you can still use user-specific API keys to manage your own servers through the bot. (Node status embeds will not work without an application API key. Server status will work fine)
The bot includes a basic server management interface using Discord buttons and embeds:
Full support for:
Supports:
Setup a Discord bot and get the bot token from the Discord Developer Portal: https://discord.com/developers/applications
Rename config.example.json to config.json
Fill in the required fields in config.json:
token: Your Discord bot token owner: Your Discord user ID client_id: Your Discord bot's client ID test_guild_id: Your Discord server ID for testing slash commands pterodactyl: company: Your Pterodactyl panel's company name domain: Your Pterodactyl panel URL (e.g., https://panel.example.com) apiKey: Application API key for non-user-specific actions (Only required for node status embeds/panel owner actions) API_ENCRYPTION_KEY: A secure random string for encrypting user API keys MANAGER_EMBED_UPDATE_INTERVAL: Seconds between resource usage updates in the server manager (uses websockets so discord rate limits are the main concern here) SERVER_STATUS_UPDATE_INTERVAL: Seconds between server status embed updates SERVER_MANAGER_TIMEOUT: Seconds of inactivity before automatically closing the server manager session/websocket ENABLE_SERVER_STATUS_CONSOLE_LOGS: Globally toggle console logs on server status embeds (requires an apiKey with server.read permissions to access wings api) NODE_STATUS_UPDATE_INTERVAL: Seconds between node status embed updates ERROR_LOGGING_ENABLED: Enable or disable extra error logging to the console for debugging purposes (You probably want this false if you're not a developer or do not have an api key set) LOG_HTTP_WARNINGS: Enable or disable warnings when making wings requests over unsecure HTTP connections (leave this on unless you are hosting everything locally and understand the risks of using HTTP)
▶️ Invite the Bot to Your Server
🔧 Installation
▶️ Run the Bot
🔗 Link Client Api Key
⚙️ Manage Your Servers
📝 Create Status Embeds
domain must end with no trailing slash
guildId is only required for local development slash-command registration but is also recommended for single-server bots to speed up command registration.
apiKey is required for any node-related actions, including node status embeds. More actions may be added in the future that require this key but their use will likely be intended for panel owners only.
MANAGER_EMBED_UPDATE_INTERVAL can be set as low as 1 second if just you or very few others will be using the bot. Higher values are recommended for larger bots to avoid hitting rate limits.
| Back | FazBrowse Home | New Git URL |