From c2bae09528b757cc728e396fd7eedbbbf20f16d0 Mon Sep 17 00:00:00 2001 From: janderedev Date: Thu, 13 Jan 2022 17:50:06 +0100 Subject: [PATCH] log IDs on command execution --- src/bot/modules/command_handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/modules/command_handler.ts b/src/bot/modules/command_handler.ts index 62c0a60..d86beb2 100644 --- a/src/bot/modules/command_handler.ts +++ b/src/bot/modules/command_handler.ts @@ -89,7 +89,7 @@ let commands: Command[]; let message: MessageCommandContext = msg as MessageCommandContext; message.serverContext = serverCtx; - logger.info(`Command: ${message.author?.username} in ${message.channel?.server?.name}: ${message.content}`); + logger.info(`Command: ${message.author?.username} (${message.author?._id}) in ${message.channel?.server?.name} (${message.channel?.server?._id}): ${message.content}`); // Create document for server in DB, if not already present if (JSON.stringify(config) == '{}') await client.db.get('servers').insert({ id: message.channel?.server_id });