mirror of
https://github.com/janderedev/automod.git
synced 2024-12-23 03:05:26 +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;
|
let message: MessageCommandContext = msg as MessageCommandContext;
|
||||||
message.serverContext = serverCtx;
|
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
|
// 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 });
|
if (JSON.stringify(config) == '{}') await client.db.get('servers').insert({ id: message.channel?.server_id });
|
||||||
|
|
Loading…
Reference in a new issue