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

Increase message limit for messageSpam rule

This commit is contained in:
toast-ts 2024-04-13 22:42:59 +10:00 committed by GitHub
parent 960091792e
commit f2d61c5fa9

View File

@ -50,7 +50,7 @@ export default class MessageCreate {
automodded = true; automodded = true;
message.delete().catch(()=>Logger.console('log', `${automodLog}MessageSpam`, automodFailReason)); message.delete().catch(()=>Logger.console('log', `${automodLog}MessageSpam`, automodFailReason));
message.channel.send('Spamming is not cool, slow down!').then(x=>setTimeout(()=>x.delete(), 15000)); message.channel.send('Spamming is not cool, slow down!').then(x=>setTimeout(()=>x.delete(), 15000));
await Automoderator.repeatedMessages(client, message, 'mute', 30000, 4, 'spam', '30m', 'Message spam'); await Automoderator.repeatedMessages(client, message, 'mute', 30000, 6, 'spam', '30m', 'Message spam');
delete client.repeatedMessages[message.author.id]; delete client.repeatedMessages[message.author.id];
} }
}, },