From 421ccd6d6c89b2985008f85a99e13be8a11193ba Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 20:36:19 -0500 Subject: [PATCH] I'm tired of this... --- main.cjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.cjs b/main.cjs index fafbce6..eafa60b 100644 --- a/main.cjs +++ b/main.cjs @@ -196,11 +196,14 @@ function getMatchingPhrase(inputString, targetCharacter) { if (content.includes(checkArray[i])) { console.log("match!"); message.delete(); - return; + return true; } } + return false; + } + if (checkLoop(message, checkString)) { + return; } - checkLoop(message, checkString); checkString = checkString.replace(/[^a-zA-Z0-9]/g, ''); checkLoop(message, checkString); }