aboutsummaryrefslogtreecommitdiff
path: root/modules/google.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-27 11:46:10 +0100
committerGravatar jesopo2018-09-27 11:46:10 +0100
commit8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch)
tree2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/google.py
parentImplement @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.py7
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):
"""