From 1c41672103bc760fd9f8a26544dea6b13beefa87 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@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]){