Caution
Most of the code was fed to Gemini 3.5 Flash (Medium), and is a fork of PteroStats by HirziDevs, that is licensed under the MIT license. With this note, I cannot guarantee the reliability of this code.
CalagopusStats is a premium, highly configurable Discord Bot designed to monitor your Calagopus or Pterodactyl Panel stats and post beautiful real-time node resource allocation summaries directly to your Discord server.
- 🛠️ Modern Setup Wizard: Built using
@clack/promptsfeaturing automatic credential defaults pre-loading, input masking, immediate API verification, and an interactive review/edit navigation dashboard. - 📊 Dynamic Allocation Charts: Grouped node memory allocation comparisons and stacked capacity diagrams rendered dynamically inside Discord Message Components V2.
- 📈 Historical Trends (
/history): Logs metrics hourly tohistory.jsonand renders a 24-hour dual-axis trend line chart showing Server count and RAM allocations. - 🔄 Rotating Status Presence: Dynamically cycles bot statuses through customizable templates (
config.yml) displaying real-time servers, users, node uptime, and node statuses. - ⏰ Process Timezone Configuration: Native timezone adjustment (
timezoneconfig key) that updates all console logs and timestamp formatting to your local region (e.g.Europe/Paris). - 🌐 Docker Health Checks: Built-in
healthcheck.jsscript to natively monitor container health state and auto-restart if the bot hangs. - 📦 Container Bypasses: Automatically detects environment variables in Docker or Pterodactyl Eggs to skip the wizard and boot up instantly.
| Command | Description | Permission |
|---|---|---|
/stats |
View general panel statistics and a list of online/offline nodes. | Everyone |
/node <name> |
View detailed memory, disk, CPU, and Wings daemon specs for a node. | Everyone |
/history |
View a 24-hour visual trend line chart of Panel growth and RAM. | Everyone |
/help |
Interactive command listing guides, repository links, and command descriptions. | Everyone |
/ping |
Check the bot latency and API gateway response speeds. | Everyone |
/refresh |
Force an immediate manual refresh of the main status message card. | Administrator |
/maintenance <node> <on/off> |
Manage node maintenance state to silence alerts and update embeds. | Administrator |
/blacklist <add/remove> <node> |
Exclude or restore a node from status embeds. | Administrator |
/alert-test |
Dispatch mock online/offline test cards to verify alert webhooks. | Administrator |
/panel-sysinfo |
View hardware specs, database size, and OS info of the Panel host. | Administrator |
Select your preferred deployment method below:
- 🎮 Using Pterodactyl/Pelican Egg (Recommended)
- 🐳 Using Docker / Docker Compose
- 💻 Manual Installation (PM2/Node.js)
Create a docker-compose.yml file and mount your config.yml configuration:
services:
calagopusstats:
container_name: calagopusstats
image: ghcr.io/heyitslumi/calagopusstats:latest
restart: always
volumes:
- ./config.yml:/app/config.yml
environment:
- PanelURL=https://panel.example.com
- PanelKEY=c7sp_yourAdminAPIKeyHere
- DiscordBotToken=MTQ3MTg2.yourDiscordBotTokenHere
- DiscordChannel=1304520281020305441
healthcheck:
test: ["CMD", "node", "healthcheck.js"]
interval: 1m
timeout: 10s
retries: 3
start_period: 30sRun the container:
docker compose up -d- ⚙️ Changing Env Configuration
- 🔑 How to get Panel API key
- 💬 How to get Channel ID
- 🎨 How to use Custom Emojis
- 🚫 Blacklist Nodes Guide
- 🔔 Notifier (Discord Webhook Alerts) Guide
Issues and pull requests are welcome! Feel free to open an issue or submit a pull request on our GitHub repository.
CalagopusStats is licensed under the MIT License.