Paper Dynasty Discord - Discord bot for card game
Implements a comprehensive health check system using aiohttp to support container orchestration and external monitoring systems. Features: - /health endpoint: Basic liveness check (is process running?) - /ready endpoint: Readiness check (is bot connected to Discord?) - /metrics endpoint: Detailed bot metrics (guilds, users, cogs, latency) Changes: - Add aiohttp to requirements.txt - Create health_server.py module with HTTP server - Update paperdynasty.py to run health server alongside bot - Update docker-compose.yml with HTTP-based healthcheck - Fix deploy.sh Docker image name Benefits: - Auto-restart on bot hangs/deadlocks - Foundation for external monitoring (Prometheus, Grafana, etc.) - Detailed diagnostics for troubleshooting - Industry-standard health check pattern 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .plans | ||
| .vscode | ||
| cogs | ||
| command_logic | ||
| discord_ui | ||
| helpers | ||
| in_game | ||
| migrations | ||
| tests | ||
| utilities | ||
| .dockerignore | ||
| .gitignore | ||
| alembic.ini | ||
| api_calls.py | ||
| constants.py | ||
| db_calls_gameplay.py | ||
| deploy.sh | ||
| DEPLOYMENT.md | ||
| dice.py | ||
| discord_utils.py | ||
| Dockerfile | ||
| exceptions.py | ||
| gauntlets.py | ||
| health_server.py | ||
| help_text.py | ||
| helpers.py | ||
| LICENSE | ||
| manual_pack_distribution.py | ||
| paperdynasty.py | ||
| PRODUCTION_COGS.md | ||
| pytest.ini | ||
| random_content.py | ||
| requirements.txt | ||
| search_utils.py | ||
| utils.py | ||