How smolteu/discord-pterodactyl-controller works
A small Discord bot lets users start or stop a Minecraft server through Pterodactyl. The runtime loads the manager cog; its slash commands send power requests and report the outcome to the user. Source excerpts show the command and API behavior; the README documents the server-management purpose.
Main entry points: manager.py Power commands · main.py Bot startup
Components 5
Bot runtime
- Bot startup
main.py
Server control
- Power commands
cogs/manager.py - Pterodactyl API
- Minecraft server
Other components
- Discord user
Connections 5
- Bot startup → Power commands: loads cog
main.py - Discord user → Power commands: invokes slash command
cogs/manager.py - Power commands → Pterodactyl API: sends power request
cogs/manager.py - Power commands → Discord user: reports outcome
cogs/manager.py - Pterodactyl API → Minecraft server: controls power
README.md