From fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 13:25:12 +0100 Subject: Refactor everything to use delimited events --- modules/title.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/title.py') diff --git a/modules/title.py b/modules/title.py index 824cc6da..6684c936 100644 --- a/modules/title.py +++ b/modules/title.py @@ -5,9 +5,8 @@ REGEX_URL = re.compile("https?://\S+", re.I) class Module(object): def __init__(self, bot, events, exports): - events.on("received").on("command").on("title", "t").hook( - self.title, help="Get the title of the provided or most " - "recent URL.", usage="[URL]") + events.on("received.command").on("title", "t").hook(self.title, + help="Get the title of a URL", usage="[URL]") def title(self, event): url = None -- cgit v1.3.1-10-gc9f91