diff --git a/.replit b/.replit index c585861..cacbbdd 100644 --- a/.replit +++ b/.replit @@ -18,10 +18,6 @@ expertMode = true localPort = 5000 externalPort = 80 -[[ports]] -localPort = 41339 -externalPort = 3000 - [workflows] runButton = "Project" diff --git a/attached_assets/image_1765142733639.png b/attached_assets/image_1765142733639.png new file mode 100644 index 0000000..ecc58d7 Binary files /dev/null and b/attached_assets/image_1765142733639.png differ diff --git a/replit.md b/replit.md index 31b4440..6aa722f 100644 --- a/replit.md +++ b/replit.md @@ -116,7 +116,7 @@ Aethex Sentinel is a TypeScript-based Discord bot built with the Sapphire framew - **Runtime**: Node.js 20 + TypeScript - **Framework**: @sapphire/framework - **Database**: PostgreSQL (via Prisma ORM) -- **Health Endpoint**: HTTP server on port 8044 +- **Health Endpoint**: HTTP server on port 8080 ## Project Structure @@ -176,7 +176,7 @@ sentinel-bot/ The bot exposes a health endpoint compatible with Bot Master dashboard: -**GET /health** (port 8044) +**GET /health** (port 8080) ```json { "status": "online", @@ -191,7 +191,7 @@ The bot exposes a health endpoint compatible with Bot Master dashboard: } ``` -**GET /stats** (port 8044) +**GET /stats** (port 8080) ```json { "guilds": [ @@ -211,7 +211,7 @@ Required secrets (add in Replit Secrets tab): Optional configuration: - `HUB_GUILD_ID` - Main hub server ID - `FEDERATION_GUILD_IDS` - Comma-separated list of guild IDs -- `HEALTH_PORT` - Health server port (default: 8044) +- `HEALTH_PORT` - Health server port (default: 8080) ## Running the Bot @@ -235,7 +235,7 @@ Once the Sentinel bot is running, add it to Bot Master dashboard: 1. Go to Bot Master dashboard (port 5000) 2. Click "Add Bot" 3. Enter name: "Aethex Sentinel" -4. Enter health endpoint: `http://localhost:8044/health` +4. Enter health endpoint: `http://localhost:8080/health` 5. Select type: "discord" The dashboard will automatically poll the health endpoint for status updates. diff --git a/sentinel-bot/src/core/config.ts b/sentinel-bot/src/core/config.ts index 7ca8a26..efa7fbf 100644 --- a/sentinel-bot/src/core/config.ts +++ b/sentinel-bot/src/core/config.ts @@ -24,7 +24,7 @@ export const config = { }, health: { - port: parseInt(process.env.HEALTH_PORT || '8044'), + port: parseInt(process.env.HEALTH_PORT || '8080'), }, };