1 parent 43807e8 commit f8ae2dfCopy full SHA for f8ae2df
1 file changed
src/components/events/message.ts
@@ -85,7 +85,7 @@ export default async function (msg: Message, type: string): Promise<void> {
85
* Check if the message starts with the command prefix.
86
*/
87
88
- const rawBody = msg.body;
+ const rawBody = msg.body.replace(regex, '');
89
90
const prefixRegex = new RegExp(`^(${commandPrefix})\\s*`, "i");
91
const bodyHasPrefix = prefixRegex.test(rawBody);
0 commit comments