log IDs on command execution

This commit is contained in:
janderedev 2022-01-13 17:50:06 +01:00
parent 205a93dfb2
commit c2bae09528
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -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 });