aboutsummaryrefslogtreecommitdiff
path: root/modules/google.py
diff options
context:
space:
mode:
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):
"""