diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/youtube.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/youtube.py')
| -rw-r--r-- | modules/youtube.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/youtube.py b/modules/youtube.py index c90872a4..c44ac7fa 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -71,10 +71,11 @@ class Module(ModuleManager.BaseModule): video_id = search_page["items"][0]["id"]["videoId"] return "https://youtu.be/%s" % video_id - @Utils.hook("received.command.yt|youtube", usage="[query]") + @Utils.hook("received.command.yt|youtube") def yt(self, event): """ - Find a video on youtube + :help: Find a video on youtube + :usage: [query/URL] """ video_id = None search = None |
