aboutsummaryrefslogtreecommitdiff
path: root/bot/src/events/InteractionCreate.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/events/InteractionCreate.js')
-rw-r--r--bot/src/events/InteractionCreate.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/src/events/InteractionCreate.js b/bot/src/events/InteractionCreate.js
index ac979d2..777ce39 100644
--- a/bot/src/events/InteractionCreate.js
+++ b/bot/src/events/InteractionCreate.js
@@ -1,4 +1,5 @@
import { Events, MessageFlags } from 'discord.js';
+import { Analytics } from '../plugins/analytics.js';
function error(e) {
return `Something went wrong. [Submit an issue at the AleeBot repository.](<https://github.com/Alee14/AleeBot/issues>)\nMessage:\n\`\`\`js\n${e.stack}\`\`\``;
@@ -14,6 +15,8 @@ export default {
if (!command) return;
try {
+ console.log(`[i] ${interaction.user.username} has executed ${command.data.name}`);
+ await Analytics(command, interaction);
await command.execute(interaction);
} catch (e) {
console.error(e);