aboutsummaryrefslogtreecommitdiff
path: root/modules/imdb.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/imdb.py
parentImplement @Utils.export, to denote an export on a module (diff)
signature
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/imdb.py')
-rw-r--r--modules/imdb.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/imdb.py b/modules/imdb.py
index d735910f..1d3a8ab5 100644
--- a/modules/imdb.py
+++ b/modules/imdb.py
@@ -1,15 +1,13 @@
#--require-config omdbapi-api-key
import json
-from src import Utils
+from src import ModuleManager, Utils
URL_OMDB = "http://www.omdbapi.com/"
URL_IMDBTITLE = "http://imdb.com/title/%s"
-class Module(object):
+class Module(ModuleManager.BaseModule):
_name = "IMDb"
- def __init__(self, bot, events, exports):
- self.bot = bot
@Utils.hook("received.command.imdb", min_args=1, usage="<movie/tv title>")
def imdb(self, event):