Skip to content

Commit f8ae2df

Browse files
authored
feat: remove emoji from parsing user command in message.ts
1 parent 43807e8 commit f8ae2df

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
@@ -85,7 +85,7 @@ export default async function (msg: Message, type: string): Promise<void> {
8585
* Check if the message starts with the command prefix.
8686
*/
8787

88-
const rawBody = msg.body;
88+
const rawBody = msg.body.replace(regex, '');
8989

9090
const prefixRegex = new RegExp(`^(${commandPrefix})\\s*`, "i");
9191
const bodyHasPrefix = prefixRegex.test(rawBody);

0 commit comments

Comments
 (0)