A Discord-powered remote control for Pterodactyl game servers! 🚀
4.5K
Welcome to PTBot – your Discord-powered remote control for Pterodactyl game servers! 🚀

PTBot is a Go-based Discord bot that lets you manage your Pterodactyl servers directly from Discord. Whether you want to start, stop, restart, check status, or send console commands, PTBot has you covered. It's like having a sysadmin in your pocket (or at least in your Discord sidebar).
/pt to list servers, check status, start, stop, restart, or send commands. 💬/pt list – See all your servers 📋/pt status name:<server> – Get server status 🩺/pt start name:<server> – Start a server ▶️/pt stop name:<server> – Stop a server ⏹️/pt restart name:<server> – Restart a server 🔄/pt send name:<server> command:<cmd> – Send a console command 💻/data/config.json or environment variables.You can run PTBot easily using Docker or Docker Compose. This is the recommended way for production deployments.
services:
ptbot:
image: ghcr.io/jacoknapp/ptbot:latest
container_name: ptbot
restart: unless-stopped
volumes:
- ./data:/data
environment:
DISCORD_TOKEN: <your-discord-bot-token>
PTERO_BASE_URL: <your-pterodactyl-url>
PTERO_CLIENT_TOKEN: <your-pterodactyl-client-api-token>
ALERT_CHANNEL_ID: <discord-channel-id-for-alerts> #optional
HEALTH_CHECK_INTERVAL: 2m #optional
ALLOWED_GUILD_IDS: <comma-separated-guild-ids> #optional
ALLOWED_ROLE_IDS: <comma-separated-role-ids> #optional
ALLOWED_USER_IDS: <comma-separated-user-ids> #optional
PTBOT_INSECURE: false # set to true to allow untrusted TLS certs #optional
command: ["-config", "/data/config.json"]
docker-compose.yml.docker compose up -d
You can also run PTBot directly with Docker:
docker run -d \
-v $(pwd)/data:/data \
-e DISCORD_TOKEN=... \
-e PTERO_BASE_URL=... \
-e PTERO_CLIENT_TOKEN=... \
-e ALERT_CHANNEL_ID=... \
-e HEALTH_CHECK_INTERVAL=2m \
-e ALLOWED_GUILD_IDS=... \
-e ALLOWED_ROLE_IDS=... \
-e ALLOWED_USER_IDS=... \
-e PTBOT_INSECURE=false \
ghcr.io/jacoknapp/ptbot:latest -config /data/config.json
DISCORD_TOKENTo use PTBot, you'll need a Pterodactyl Client API key. Here's how to get one:
PTERO_CLIENT_TOKEN in your PTBot configuration.Note: Keep your API key secret! Anyone with this key can control your servers via PTBot.
PRs welcome! If you have a fun idea (or just want to add more emojis), fork away. 🦄
"Why click buttons when you can
/pt startlike a boss?"
Made with ❤️, Go, and Discordgo.
MIT License
Copyright (c) 2025 jacoknapp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
sha256:6dea78100…
Size
3.6 MB
Last updated
3 months ago
docker pull jacoknapp/ptbot