1
Fork 0
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:
Steffo 2020-12-29 15:36:23 +01:00
parent 25ab56f0d7
commit 8a3a4a9bfc

View file

@ -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`.