diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/trakt.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/trakt.py')
| -rw-r--r-- | modules/trakt.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/trakt.py b/modules/trakt.py index 8d82896b..203cfae8 100644 --- a/modules/trakt.py +++ b/modules/trakt.py @@ -8,10 +8,9 @@ URL_TRAKTSLUG = "https://trakt.tv/%s/%s" class Module(object): def __init__(self, bot, events, exports): self.bot = bot - events.on("received").on("command").on("nowwatching", - "nw").hook(self.now_watching, - help="Get what you or another user is now watching " - "on trakt.tv", usage="[username]") + events.on("received.command").on("nowwatching", "nw").hook( + self.now_watching, usage="[username]", + help="Get what you or another user is now watching on trakt.tv") exports.add("set", {"setting": "trakt", "help": "Set username on trakt.tv"}) |
