Fixed command parse error
This commit is contained in:
parent
e5e65d4701
commit
1e285cc029
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user