mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
📔 Improve Command documentation
This commit is contained in:
parent
6036837c0d
commit
489d2ef0be
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Command:
|
class Command:
|
||||||
"""
|
"""
|
||||||
A decorator to create a command that can be called from the chat by entering a certain :attr:`.pattern` of
|
A class that allows creating commands which can be called from the chat by entering a certain :attr:`.pattern` of
|
||||||
characters:
|
characters:
|
||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
@ -23,6 +23,7 @@ class Command:
|
||||||
/echo Hello!
|
/echo Hello!
|
||||||
# Hello!
|
# Hello!
|
||||||
|
|
||||||
|
.. todo:: Improve the docstring of :class:`.Command`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
|
|
Loading…
Reference in a new issue