From a25c58a3923be54df8c3cb2056546ac30bdf8796 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 02:59:50 +0000 Subject: [PATCH] completionId: cgen-264057f69bdb4f188e01beeda4c43e7d cgen-264057f69bdb4f188e01beeda4c43e7d --- server/index.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/server/index.ts b/server/index.ts index ad51dd26..ca360e10 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1746,18 +1746,12 @@ export function createServer() { } } + // Could not reach any health endpoint + res.setHeader("Content-Type", "application/json"); return res.status(503).json({ status: "offline", error: `Could not reach bot health endpoint. Last error: ${lastError?.message || "Unknown error"}`, }); - res.setHeader("Content-Type", "application/json"); - return res.json({ - status: data.status || "online", - guilds: data.guilds || 0, - commands: data.commands || 0, - uptime: data.uptime || 0, - timestamp: data.timestamp || new Date().toISOString(), - }); } catch (error: any) { console.error("[Discord Bot Health] Error:", error); res.setHeader("Content-Type", "application/json"); @@ -1823,7 +1817,7 @@ export function createServer() { if (!clientId) { diagnostics.recommendations.push( - "❌ DISCORD_CLIENT_ID not set. Set it to your application's ID.", + "�� DISCORD_CLIENT_ID not set. Set it to your application's ID.", ); } else { diagnostics.recommendations.push("✅ DISCORD_CLIENT_ID is set");