diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index fd577b5c..bc82ecba 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -84,7 +84,9 @@ export class Mjolnir { ]; if (config.commands.allowNoPrefix) prefixes.push("!"); - const prefixUsed = prefixes.find(p => content['body'].startsWith(p)); + console.log(content['body']) + + const prefixUsed = prefixes.find(p => content['body'].toLowerCase().startsWith(p.toLowerCase())); if (!prefixUsed) return; // rewrite the event body to make the prefix uniform (in case the bot has spaces in its display name)