From 2bbea81cf993349d1523b4df47598090ab24230a Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 11 Oct 2022 16:04:23 -0700 Subject: [PATCH] debug command name on interaction log --- config/config.js | 2 +- structures/QuarksBot.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/config.js b/config/config.js index d402ea0..c092762 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config(); module.exports = { Dev: "PROD.", - Version: "12.7.2", + Version: "12.7.3", Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot DefaultPrefix: "?", ServerID: "955668596745461830", diff --git a/structures/QuarksBot.js b/structures/QuarksBot.js index 935816a..60ffc24 100644 --- a/structures/QuarksBot.js +++ b/structures/QuarksBot.js @@ -32,12 +32,13 @@ class QuarksBot extends Client { this.ws.on("INTERACTION_CREATE", async (interaction) => { const start = new Date().getTime(); if (interaction.type!=3) { - client.log("Interaction") let GuildDB = await this.GetGuild(interaction.guild_id); - + const command = interaction.data.name.toLowerCase(); const args = interaction.data.options; + client.log(`Interaction - ${command}`); + //Easy to send respnose so ;) interaction.guild = await this.guilds.fetch(interaction.guild_id); interaction.send = async (message) => {