mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Uppercase the prefix to match others
This commit is contained in:
parent
9979a4af9d
commit
5c0f238531
@ -17,11 +17,11 @@ export default class Automoderator {
|
||||
// If the count has reached the threshold amount, punish the user like most daddy would do to their child.
|
||||
if (!this.lockQuery.has(message.author.id)) {
|
||||
this.lockQuery.add(message.author.id);
|
||||
Logger.console('log', 'Automod', `Lock acquired for ${message.author.tag} with reason: ${reason}`);
|
||||
Logger.console('log', 'AUTOMOD', `Lock acquired for ${message.author.tag} with reason: ${reason}`);
|
||||
await client.punishments.punishmentAdd('mute', {time: duration}, client.user.id, `AUTOMOD:${reason}`, message.author, message.member as Discord.GuildMember);
|
||||
setTimeout(()=>{
|
||||
this.lockQuery.delete(message.author.id);
|
||||
Logger.console('log', 'Automod', `Lock released for ${message.author.tag}`);
|
||||
Logger.console('log', 'AUTOMOD', `Lock released for ${message.author.tag}`);
|
||||
}, 3500); // Wait 3.5 seconds before releasing the lock.
|
||||
}
|
||||
delete client.repeatedMessages[message.author.id];
|
||||
|
Loading…
Reference in New Issue
Block a user