mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Uppercase the prefix to match others
This commit is contained in:
parent
366cd45bbb
commit
de75ac2745
@ -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 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)) {
|
if (!this.lockQuery.has(message.author.id)) {
|
||||||
this.lockQuery.add(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);
|
await client.punishments.punishmentAdd('mute', {time: duration}, client.user.id, `AUTOMOD:${reason}`, message.author, message.member as Discord.GuildMember);
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.lockQuery.delete(message.author.id);
|
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.
|
}, 3500); // Wait 3.5 seconds before releasing the lock.
|
||||||
}
|
}
|
||||||
delete client.repeatedMessages[message.author.id];
|
delete client.repeatedMessages[message.author.id];
|
||||||
|
Loading…
Reference in New Issue
Block a user