diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/words.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/words.py')
| -rw-r--r-- | modules/words.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/words.py b/modules/words.py index e23f3113..42ac3634 100644 --- a/modules/words.py +++ b/modules/words.py @@ -4,19 +4,19 @@ import Utils class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("message").on("channel" + events.on("received.message.channel" ).hook(self.channel_message) - events.on("self").on("message").on("channel" + events.on("self.message.channel" ).hook(self.self_channel_message) - events.on("received").on("command").on("words" + events.on("received.command.words" ).hook(self.words, channel_only=True, usage="<nickname>", help= "See how many words you or the given nickname have used") - events.on("received").on("command").on("trackword" + events.on("received.command.trackword" ).hook(self.track_word, min_args=1, help="Start tracking a word", usage="<word>", permission="track-word") - events.on("received").on("command").on("wordusers" + events.on("received.command.wordusers" ).hook(self.word_users, min_args=1, help="Show who has used a tracked word the most", usage="<word>") |
