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
This commit is contained in:
sirpiglr 2025-12-08 03:17:55 +00:00
parent f1d1b916e5
commit 2b822b9260

View file

@ -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