aboutsummaryrefslogtreecommitdiff
path: root/modules/hash.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-19 13:25:12 +0100
committerGravatar jesopo2018-09-19 13:25:12 +0100
commitfcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch)
tree0015e3da000323b8f576f3303807176f1f4ea794 /modules/hash.py
parentFix some styling in ducks.py (diff)
signature
Refactor everything to use delimited events
Diffstat (limited to 'modules/hash.py')
-rw-r--r--modules/hash.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/hash.py b/modules/hash.py
index 38115411..e123da9a 100644
--- a/modules/hash.py
+++ b/modules/hash.py
@@ -3,9 +3,8 @@ import hashlib
class Module(object):
def __init__(self, bot, events, exports):
self.bot = bot
- events.on("received").on("command").on("hash"
- ).hook(self.hash, min_args=2, help="Hash a string",
- usage="<algo> <string>")
+ events.on("received.command.hash").hook(self.hash, min_args=2,
+ help="Hash a string", usage="<algo> <string>")
def hash(self, event):
algorithm = event["args_split"][0].lower()