diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/translate.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/translate.py')
| -rw-r--r-- | modules/translate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translate.py b/modules/translate.py index cd017dde..55ba6d65 100644 --- a/modules/translate.py +++ b/modules/translate.py @@ -7,7 +7,7 @@ REGEX_LANGUAGES = re.compile("(\w+)?:(\w+)? ") class Module(object): def __init__(self, bot, events, exports): - events.on("received").on("command").on("translate", "tr").hook( + events.on("received.command").on("translate", "tr").hook( self.translate, help="Translate the provided phrase or the " "last line seen.", usage="[phrase]") |
