Ignore case; AI refactor
This commit is contained in:
parent
3187885ac3
commit
eb3f3fda0d
3 changed files with 14 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue