mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Remove unused const
This commit is contained in:
parent
2173103086
commit
c90e81ae65
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user