From 1e285cc0299f4e7257d74a6e2398e18196cd2c31 Mon Sep 17 00:00:00 2001
From: BordedDev <>
Date: Thu, 10 Apr 2025 09:52:29 +0200
Subject: [PATCH] Fixed command parse error

---
 src/msg-handlers/img-gen-handler.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/msg-handlers/img-gen-handler.ts b/src/msg-handlers/img-gen-handler.ts
index 548337c..b88e1f6 100644
--- a/src/msg-handlers/img-gen-handler.ts
+++ b/src/msg-handlers/img-gen-handler.ts
@@ -55,7 +55,7 @@ export class ImgGenHandler extends BaseHandler {
       return
     }
 
-    const [[_, command, rest]] = newMessage.matchAll(/^(\w+)\s*(.*)$/gs)
+    const [[_, command, rest]] = newMessage.matchAll(/^(\S+)\s*(.*)$/gs)
 
     if (command in this.#subCommands) {
       this.#subCommands[command]?.(rest.trim(), message, bot)