diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/google.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/google.py')
| -rw-r--r-- | modules/google.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/google.py b/modules/google.py index f6d8469c..e30e6cda 100644 --- a/modules/google.py +++ b/modules/google.py @@ -8,10 +8,11 @@ URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" URL_GOOGLESUGGEST = "http://google.com/complete/search" class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.google|g", usage="[search term]") + @Utils.hook("received.command.google|g") def google(self, event): """ - Get first Google result for a given search term + :help: Get first Google result for a given search term + :usage: [search term] """ phrase = event["args"] or event["target"].buffer.get() if phrase: |
