aboutsummaryrefslogtreecommitdiff
path: root/modules/trakt.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/trakt.py
parentFix some styling in ducks.py (diff)
signature
Refactor everything to use delimited events
Diffstat (limited to 'modules/trakt.py')
-rw-r--r--modules/trakt.py7
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"})