aboutsummaryrefslogtreecommitdiff
path: root/modules/pong.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-30 17:29:09 +0100
committerGravatar jesopo2018-09-30 17:29:09 +0100
commit10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch)
tree4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/pong.py
parentreceived.command takes a final [command] part (diff)
signature
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/pong.py')
-rw-r--r--modules/pong.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/pong.py b/modules/pong.py
index c45e3aef..8742c678 100644
--- a/modules/pong.py
+++ b/modules/pong.py
@@ -1,6 +1,9 @@
from src import ModuleManager, Utils
class Module(ModuleManager.BaseModule):
- @Utils.hook("received.command.ping", help="Ping pong!")
+ @Utils.hook("received.command.ping")
def pong(self, event):
+ """
+ :help: Ping pong!
+ """
event["stdout"].write("Pong!")