diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/urbandictionary.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/urbandictionary.py')
| -rw-r--r-- | modules/urbandictionary.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py index da4098c8..a937dc9b 100644 --- a/modules/urbandictionary.py +++ b/modules/urbandictionary.py @@ -6,9 +6,8 @@ REGEX_DEFNUMBER = re.compile("-n(\d+) \S+") class Module(object): def __init__(self, bot, events, exports): - events.on("received").on("command").on("urbandictionary", "ud" - ).hook(self.ud, min_args=1, - help="Get the definition of a provided term", + events.on("received.command").on("urbandictionary", "ud").hook( + self.ud, min_args=1, help="Get the definition of a provided term", usage="<term>") def ud(self, event): |
