mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
log IDs on command execution
This commit is contained in:
parent
205a93dfb2
commit
c2bae09528
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue