mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Remove unused const
This commit is contained in:
parent
e3c768e95a
commit
56c4cd9a25
@ -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