mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-26 21:14:19 +00:00
🐛 Fix default command pattern
This commit is contained in:
parent
25ab56f0d7
commit
8a3a4a9bfc
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Command:
|
||||||
name: str,
|
name: str,
|
||||||
syntax: str,
|
syntax: str,
|
||||||
*,
|
*,
|
||||||
pattern: str = r"^{prefix}{name} {syntax}",
|
pattern: str = r"^{prefix}{name}(?: {syntax})?",
|
||||||
doc: str = ""):
|
doc: str = ""):
|
||||||
"""
|
"""
|
||||||
Create a new :class:`.Command` using the decorated function as :attr:`.conversation`.
|
Create a new :class:`.Command` using the decorated function as :attr:`.conversation`.
|
||||||
|
|
Loading…
Reference in a new issue