diff options
| author | 2018-09-19 13:25:12 +0100 | |
|---|---|---|
| committer | 2018-09-19 13:25:12 +0100 | |
| commit | fcbb7c960ce8c9b693711b4b40d3fa86fd17d7cf (patch) | |
| tree | 0015e3da000323b8f576f3303807176f1f4ea794 /modules/title.py | |
| parent | Fix some styling in ducks.py (diff) | |
| signature | ||
Refactor everything to use delimited events
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
