From 35555e27ee4b9bf1ab1bba823350db16c4c93d99 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Wed, 30 Jun 2021 16:06:07 +0200 Subject: [PATCH] Add userid to logging executed commands --- server/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/message.js b/server/message.js index 4aa1869..cece85b 100644 --- a/server/message.js +++ b/server/message.js @@ -23,7 +23,7 @@ module.exports = function(client, owners, message, globalPrefix){ if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return; try { command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners}) - console.log(`${message.author.username} executed ${command.name}`) + console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name}`) } catch (error) { console.log(`${error}\n-------`) }