diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index fd577b5..71ea53d 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -84,7 +84,7 @@ export class Mjolnir { ]; if (config.commands.allowNoPrefix) prefixes.push("!"); - const prefixUsed = prefixes.find(p => content['body'].startsWith(p)); + 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)