1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00

Remove unused const

This commit is contained in:
AnxietyisReal 2023-02-14 15:34:52 +11:00
parent 2173103086
commit c90e81ae65

View File

@ -40,8 +40,8 @@ export default {
// if a spammed message exists; // if a spammed message exists;
if (spammedMessage){ if (spammedMessage){
// mute // mute
const muteResult = await client.punishments.addPunishment('mute', { time: '30m' }, (client.user as Discord.User).id, 'Automod; Banned words', message.author, message.member as Discord.GuildMember); await client.punishments.addPunishment('mute', { time: '30m' }, (client.user as Discord.User).id, 'Automod; Banned words', message.author, message.member as Discord.GuildMember);
// and clear their list of long messages // clear their list of long messages
delete client.repeatedMessages[message.author.id]; delete client.repeatedMessages[message.author.id];
} }
} else { } else {
@ -67,7 +67,7 @@ export default {
}); });
if (spammedMessage){ if (spammedMessage){
const muteResult = await client.punishments.addPunishment('mute', {time: '1h'}, (client.user as Discord.User).id, 'Automod; Discord advertisement', message.author, message.member as Discord.GuildMember); await client.punishments.addPunishment('mute', {time: '1h'}, (client.user as Discord.User).id, 'Automod; Discord advertisement', message.author, message.member as Discord.GuildMember);
delete client.repeatedMessages[message.author.id]; delete client.repeatedMessages[message.author.id];
} }
}else{ }else{