From 7dd6e8007db6c072e8155ec295d0bbf0654a5406 Mon Sep 17 00:00:00 2001 From: q-Sci Date: Sat, 14 Oct 2023 22:16:22 +0200 Subject: [PATCH] removed comments --- commands/match/match-command.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/commands/match/match-command.ts b/commands/match/match-command.ts index 0a5f158..d9a6ae5 100644 --- a/commands/match/match-command.ts +++ b/commands/match/match-command.ts @@ -11,9 +11,6 @@ export const sendQuestion = async (interaction: any) => { let userResponses = userContext?.userVector || []; - // Test discussion topics - // TODO: check if user has completed the test - const guildId = process.env.GUILD_ID; if (!guildId) throw new Error('GUILD_ID not found'); @@ -77,7 +74,7 @@ export const sendQuestion = async (interaction: any) => { export const data = new SlashCommandBuilder().setName('match').setDescription('Requests new match without retaking the test.'); export const execute = async (interaction: any) => { - + const userContext = await db.db('contrabot').collection("users").findOne({ userId: interaction.user.id }); let userResponses = userContext?.userVector || [];