From 062f0d1a4eb406a8926e26cfe367314c3d77c863 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 1 Jun 2025 02:58:01 +0000 Subject: [PATCH] feat: reduce default loose_matching_threshold to 1 to avoid false positives --- backend/src/plugins/Automod/triggers/matchWords.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Automod/triggers/matchWords.ts b/backend/src/plugins/Automod/triggers/matchWords.ts index d3c9db7c..7967c9de 100644 --- a/backend/src/plugins/Automod/triggers/matchWords.ts +++ b/backend/src/plugins/Automod/triggers/matchWords.ts @@ -19,7 +19,7 @@ const configSchema = z.strictObject({ only_full_words: z.boolean().default(true), normalize: z.boolean().default(false), loose_matching: z.boolean().default(false), - loose_matching_threshold: z.number().int().default(4), + loose_matching_threshold: z.number().int().default(1), strip_markdown: z.boolean().default(false), match_messages: z.boolean().default(true), match_embeds: z.boolean().default(false),