Skip to content

Commit

Permalink
Reset cooldown breach count on auto-blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightnessTM committed Apr 15, 2020
1 parent 83e4c23 commit caf0096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions events/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ module.exports = async (Discord, client, message) => {
qUserDB.blocked = true;
await dbModify("User", { id: message.author.id }, qUserDB);

counts.set(message.author.id, 0);

message.channel.send(`<@${message.author.id}> ⚠️ You have been flagged by the command spam protection filter. This is generally caused when you use a lot of commands too quickly over a period of time. Due to this, you cannot use commands temporarily until a Suggester staff member reviews your situation. If you believe this is an error, please join https://discord.gg/${support_invite} and contact our Support Team.`);

let hook = new Discord.WebhookClient(log_hooks.commands.id, log_hooks.commands.token);
Expand Down

0 comments on commit caf0096

Please sign in to comment.