Skip to content

feat: Add health check endpoint for monitoring bot status#46

Merged
alepouna merged 1 commit intomasterfrom
feature/healthchecks
Feb 1, 2026
Merged

feat: Add health check endpoint for monitoring bot status#46
alepouna merged 1 commit intomasterfrom
feature/healthchecks

Conversation

@alepouna
Copy link
Member

@alepouna alepouna commented Jan 27, 2026

Description

Added a health check HTTP server that monitors the Discord bot's operational status. This enables the monitoring systems for Coolify verify that the bot is running and properly connected to both Discord and the database.

What was added:

  • New /health endpoint that returns HTTP 200 (OK) when the bot is healthy, or HTTP 503 (ERROR) when unhealthy
  • Health checks verify:
    • Discord client connection status (client.isReady())
    • MongoDB/Mongoose database connection (readyState === 1)
  • Configurable port via HEALTH_PORT environment variable (defaults to 3000)
  • Automatic server startup when the bot's ready event fires

Discord Username

alepouna

@alepouna alepouna self-assigned this Jan 27, 2026
@alepouna alepouna added the enhancement New feature or request label Jan 27, 2026
@alepouna alepouna force-pushed the feature/healthchecks branch from 445ac7e to b5d41ed Compare January 27, 2026 23:39
@alepouna alepouna merged commit cf2d3c0 into master Feb 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants