don't hardcode survey msg deletion

This commit is contained in:
Jill 2023-11-12 17:07:40 +03:00
parent 5152add32e
commit 4e8bdd9e92
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 0 additions and 7 deletions

View File

@ -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();
});
}
};