From 2b822b9260bd1b86ad145f2ea0deea2b4e2cdbb6 Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Mon, 8 Dec 2025 03:17:55 +0000 Subject: [PATCH] Add logging to confirm bot and client IDs match Add debug logging to verify that the bot's user ID matches the DISCORD_CLIENT_ID environment variable, outputting the IDs and a boolean indicating if they match. Replit-Commit-Author: Agent Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 9c031210-f6c9-4a37-a1a4-bc31979db44b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/BBAQobO Replit-Helium-Checkpoint-Created: true --- aethex-bot/bot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aethex-bot/bot.js b/aethex-bot/bot.js index 438473c..d8833f0 100644 --- a/aethex-bot/bot.js +++ b/aethex-bot/bot.js @@ -888,6 +888,9 @@ client.login(token).catch((error) => { client.once("ready", async () => { console.log(`Bot logged in as ${client.user.tag}`); + console.log(`Bot ID: ${client.user.id}`); + console.log(`CLIENT_ID from env: ${process.env.DISCORD_CLIENT_ID}`); + console.log(`IDs match: ${client.user.id === process.env.DISCORD_CLIENT_ID}`); console.log(`Watching ${client.guilds.cache.size} server(s)`); // Auto-register commands on startup