fix(readyEvent) filtered opposite

This commit is contained in:
Jacob Nguyen
2022-04-03 17:22:26 -05:00
parent ef8e3961d1
commit e4e4aca43b

View File

@@ -45,8 +45,9 @@ export function ignoreNonBot(prefix : string) {
(m : Message) =>
m.content
.slice(0,prefix.length)
.toLocaleLowerCase()
.indexOf(prefix.toLocaleLowerCase()) !== -1
.localeCompare(prefix,
undefined, { sensitivity : 'accent' }
) === 0
].every( fn => fn(m));
if (passAll) {