From b5f02a999a16b7907621819914ecef99e722b255 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 9 Nov 2025 06:36:31 +0000 Subject: [PATCH] completionId: cgen-8393800144fd49998e1d0a1224736519 cgen-8393800144fd49998e1d0a1224736519 --- server/index.ts | 215 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) diff --git a/server/index.ts b/server/index.ts index c78aa4af..4b5148d9 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1015,6 +1015,221 @@ export function createServer() { }); // Discord Admin Register Commands + app.get("/api/discord/admin-register-commands", async (req, res) => { + // GET: Show HTML form for browser access + res.setHeader("Content-Type", "text/html; charset=utf-8"); + return res.send(` + + + + Register Discord Commands + + + +
+

🤖 Discord Commands Registration

+

Register all Discord slash commands for AeThex

+ +
+ Commands to be registered: +
    +
  • ✅ /verify - Link your Discord account
  • +
  • ✅ /set-realm - Choose your primary arm
  • +
  • ✅ /profile - View your AeThex profile
  • +
  • ✅ /unlink - Disconnect your account
  • +
  • ✅ /verify-role - Check your Discord roles
  • +
+
+ +
+ + +
+ + + +
⏳ Registering commands... please wait...
+
+
+ + + + + `); + }); + app.post("/api/discord/admin-register-commands", async (req, res) => { try { const authHeader = req.headers.authorization;