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); }