From c4044fb776438b5cc965c9bb78804389841e4bd4 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sun, 28 May 2023 17:03:12 +0000 Subject: [PATCH] feat: log command on use --- src/commands/debug.ts | 2 +- src/commands/help.ts | 2 +- src/commands/inactive.ts | 2 +- src/commands/ownedtanks.ts | 2 +- src/commands/playerachievements.ts | 2 +- src/commands/playerinfo.ts | 2 +- src/commands/searchclans.ts | 2 +- src/commands/searchplayers.ts | 2 +- src/commands/searchtanks.ts | 2 +- src/commands/stats.tsx | 2 +- src/commands/tankstats.ts | 2 +- src/commands/today.tsx | 2 +- src/commands/verify.ts | 2 +- src/events/interactionCreate.ts | 1 + 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/commands/debug.ts b/src/commands/debug.ts index b00b1b387..7b18e4d5a 100644 --- a/src/commands/debug.ts +++ b/src/commands/debug.ts @@ -11,7 +11,7 @@ const executionStart = new Date().getTime(); export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/help.ts b/src/commands/help.ts index f9cc7a4bd..6e50b7798 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -11,7 +11,7 @@ import { client } from '../index.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/inactive.ts b/src/commands/inactive.ts index 38cdc0f9e..9fc91a20d 100644 --- a/src/commands/inactive.ts +++ b/src/commands/inactive.ts @@ -15,7 +15,7 @@ const DEFAULT_THRESHOLD = 7; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/ownedtanks.ts b/src/commands/ownedtanks.ts index 70211dadb..a3b306429 100644 --- a/src/commands/ownedtanks.ts +++ b/src/commands/ownedtanks.ts @@ -36,7 +36,7 @@ const COMP_TANKS = [ export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/playerachievements.ts b/src/commands/playerachievements.ts index 5d0e0fa32..59b3c0048 100644 --- a/src/commands/playerachievements.ts +++ b/src/commands/playerachievements.ts @@ -17,7 +17,7 @@ type SortBy = 'name' | 'count'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/playerinfo.ts b/src/commands/playerinfo.ts index 162194f95..bb0f5634d 100644 --- a/src/commands/playerinfo.ts +++ b/src/commands/playerinfo.ts @@ -13,7 +13,7 @@ import { AccountInfo } from '../types/accountInfo.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchclans.ts b/src/commands/searchclans.ts index b680c6d27..a52e50ddf 100644 --- a/src/commands/searchclans.ts +++ b/src/commands/searchclans.ts @@ -12,7 +12,7 @@ import { ClanList } from '../types/clanList.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchplayers.ts b/src/commands/searchplayers.ts index 682c5e2f3..93579dd83 100644 --- a/src/commands/searchplayers.ts +++ b/src/commands/searchplayers.ts @@ -12,7 +12,7 @@ import { AccountList } from '../types/accountList.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/searchtanks.ts b/src/commands/searchtanks.ts index 768c10e7c..bf7d49823 100644 --- a/src/commands/searchtanks.ts +++ b/src/commands/searchtanks.ts @@ -9,7 +9,7 @@ import { CommandRegistry } from '../events/interactionCreate.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/stats.tsx b/src/commands/stats.tsx index e26255ac3..e71c5e0e0 100644 --- a/src/commands/stats.tsx +++ b/src/commands/stats.tsx @@ -35,7 +35,7 @@ const periodNames: Record = { export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/tankstats.ts b/src/commands/tankstats.ts index 68f5afbbc..1566b29eb 100644 --- a/src/commands/tankstats.ts +++ b/src/commands/tankstats.ts @@ -23,7 +23,7 @@ type Periods = '30' | '60' | '90'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/today.tsx b/src/commands/today.tsx index f815248f1..5838f4a5d 100644 --- a/src/commands/today.tsx +++ b/src/commands/today.tsx @@ -29,7 +29,7 @@ import resolveTankName from '../utilities/resolveTankName.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/commands/verify.ts b/src/commands/verify.ts index 49b957b18..41c89157e 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -14,7 +14,7 @@ import { PlayerClanData } from '../types/playerClanData.js'; export default { inProduction: true, - inDevelopment: true, + inDevelopment: false, inPublic: true, command: new SlashCommandBuilder() diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts index 8eb7bc1bd..07955bf91 100644 --- a/src/events/interactionCreate.ts +++ b/src/events/interactionCreate.ts @@ -97,6 +97,7 @@ export default async function interactionCreate( try { await interaction.deferReply(); + console.log(interaction.toString()); command.execute(interaction); } catch (error) { console.error(error);