From 671d0c1b7a8631e878e0658f0f53a84e5a6e67e4 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:14:46 +1100 Subject: [PATCH] Fix scanMsg not filtering the message properly. --- src/funcs/Automod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcs/Automod.ts b/src/funcs/Automod.ts index 39c6ce8..3b3088b 100644 --- a/src/funcs/Automod.ts +++ b/src/funcs/Automod.ts @@ -6,7 +6,7 @@ export default class Automoderator { return arr.includes(message.channelId); } static scanMsg(message:Discord.Message){ - return message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]/g, '').split(' ') + return message.content.toLowerCase().replaceAll(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?\n?0-9]|ing\b/g, '').split(' ') } static async repeatedMessages(client:TClient, message:Discord.Message, thresholdTime:number, thresholdAmount:number, type:string, muteTime:string, muteReason:string){ if (client.repeatedMessages[message.author.id]){