From 8a3a4a9bfc7e36dfc01362f0f2cdfe6f477d2beb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 29 Dec 2020 15:36:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20default=20command=20patter?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/engineer/command.py b/royalnet/engineer/command.py index dcc3a585..a6fb1852 100644 --- a/royalnet/engineer/command.py +++ b/royalnet/engineer/command.py @@ -76,7 +76,7 @@ class Command: name: str, syntax: str, *, - pattern: str = r"^{prefix}{name} {syntax}", + pattern: str = r"^{prefix}{name}(?: {syntax})?", doc: str = ""): """ Create a new :class:`.Command` using the decorated function as :attr:`.conversation`.