Skip to content

Commit 13c2ccf

Browse files
committed
fix: only the key is lowercase
1 parent 7a90f07 commit 13c2ccf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/events/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default async function (msg: Message, type: string): Promise<void> {
9797
const [command, ...rest] = normalizedBody.split(" ");
9898
const key = command.toLocaleLowerCase("en");
9999

100-
msg.body = [command, ...rest].join(" ").toLocaleLowerCase("en");
100+
msg.body = [key, ...rest].join(" ");
101101
const handler = commands[key];
102102

103103
// stop here

0 commit comments

Comments
 (0)