From c7922c31b00e11da16c9ddc49d492c58c3f8fcb5 Mon Sep 17 00:00:00 2001 From: supositware Date: Thu, 16 Jun 2022 13:29:23 +0200 Subject: [PATCH] Log commands --- events/interactionCreate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 787f11e..f4ae3ab 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -6,6 +6,8 @@ module.exports = { const command = client.commands.get(interaction.commandName); + console.log(`\x1b[33m${interaction.user.tag}\x1b[0m launched command \x1b[33m${interaction.commandName}\x1b[0m`); + if (!command) return; try {