From 4e8bdd9e924d01fc070ea59e600ee0568390d0a0 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Sun, 12 Nov 2023 17:07:40 +0300 Subject: [PATCH] don't hardcode survey msg deletion --- src/commands/survey.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/commands/survey.ts b/src/commands/survey.ts index 31189e2..42d40b9 100644 --- a/src/commands/survey.ts +++ b/src/commands/survey.ts @@ -2,7 +2,6 @@ import { CommandInteraction, GuildMember, ActionRowBuilder, ButtonBuilder, Clien import * as fs from 'fs/promises'; import { knownServers } from '../lib/knownServers'; -const SURVEY_CHANNEL = '983479509376434216'; const RESPONSES_CHANNEL = '983762973858361364'; const GENERAL_CHANNEL = '587108210683412493'; @@ -758,11 +757,5 @@ module.exports = { advanceSurvey(member.id); }); - bot.on(Events.MessageCreate, msg => { - if (msg.channel.id !== SURVEY_CHANNEL) return; - if (msg.author.id === msg.client.user!.id) return; - - msg.delete(); - }); } };