don't hardcode survey msg deletion
This commit is contained in:
parent
5152add32e
commit
4e8bdd9e92
|
@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue