diff options
| author | 2018-09-27 11:46:10 +0100 | |
|---|---|---|
| committer | 2018-09-27 11:46:10 +0100 | |
| commit | 8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch) | |
| tree | 2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/google.py | |
| parent | Implement @Utils.export, to denote an export on a module (diff) | |
| signature | ||
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/google.py')
| -rw-r--r-- | modules/google.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/google.py b/modules/google.py index f98ed2ad..fb487db1 100644 --- a/modules/google.py +++ b/modules/google.py @@ -2,15 +2,12 @@ #--require-config google-search-id import json -from src import Utils +from src import ModuleManager, Utils URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" URL_GOOGLESUGGEST = "http://google.com/complete/search" -class Module(object): - def __init__(self, bot, events, exports): - self.bot = bot - +class Module(ModuleManager.BaseModule): @Utils.hook("received.command.google|g", usage="[search term]") def google(self, event): """ |
