aboutsummaryrefslogtreecommitdiff
path: root/modules/pong.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 13:28:18 +0100
committerGravatar jesopo2018-09-19 13:28:18 +0100
commit287d0312817f9668041c0192fa0c1985b7b10605 (patch)
tree958fe31ebdac4029987ee070fc3250acc3d74044 /modules/pong.py
parentRefactor everything to use delimited events (diff)
signature
Add ModuleManager.BaseModule so modules don't *have* to implement __init__
Diffstat (limited to 'modules/pong.py')
-rw-r--r--modules/pong.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/pong.py b/modules/pong.py
index d67da431..fc12d0c2 100644
--- a/modules/pong.py
+++ b/modules/pong.py
@@ -1,9 +1,6 @@
-import Utils
-
-class Module(object):
- def __init__(self, bot, events, exports):
- pass
+import ModuleManager, Utils
+class Module(ModuleManager.BaseModule):
@Utils.hook("received.command.ping", help="Ping pong!")
def pong(self, event):
event["stdout"].write("Pong!")