Ignore case; AI refactor

This commit is contained in:
Aslan 2025-12-26 11:26:07 +01:00
parent 3187885ac3
commit eb3f3fda0d
3 changed files with 14 additions and 29 deletions

View file

@ -31,7 +31,7 @@ const checkMessageCallback = (
if (
callback.startConditions &&
!callback.startConditions.some((condition) =>
text.startsWith(condition),
text.toLowerCase().startsWith(condition),
)
) {
return false;
@ -40,7 +40,7 @@ const checkMessageCallback = (
if (
callback.includesConditions &&
!callback.includesConditions.some((condition) =>
text.includes(condition),
text.toLowerCase().includes(condition),
)
) {
return false;