From 18364b67cfb7910d39c20cc03afa80ace1338355 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 7 Jul 2023 15:33:49 +0200 Subject: [PATCH] More info on logging --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 72a601d..8040e7c 100644 --- a/index.js +++ b/index.js @@ -93,12 +93,12 @@ client.on('interactionCreate', async (interaction) => { await interaction.deferReply(); await command.run({ interaction, client }); console.log( - `Command '/${interaction.commandName}' was executed successfully.` + `${new Date().toISOString().substring(11, 19)}: ${interaction.guild.name} (#${interaction.guild.memberCount})> Command '/${interaction.commandName}' was executed successfully.` ); } catch (error) { console.error(error); console.log( - `Command '/${interaction.commandName}' failed unexpectedly.` + `${new Date().toISOString().substring(11, 19)}: ${interaction.guild.name} (#${interaction.guild.memberCount})> Command '/${interaction.commandName}' failed unexpectedly.` ); await interaction.editReply({