diff options
| author | 2018-08-31 10:51:47 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:51:47 +0100 | |
| commit | 90ce92dc39395444862edfc7946ef7a1195f2464 (patch) | |
| tree | 6832c146a15879df292d265083bfe5795cbdfa69 /modules/imdb.py | |
| parent | Reformat (diff) | |
Revert "Reformat"
This reverts commit abed9cf
Diffstat (limited to 'modules/imdb.py')
| -rw-r--r-- | modules/imdb.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/imdb.py b/modules/imdb.py index 42285737..c24b4c0a 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -1,4 +1,4 @@ -# --require-config omdbapi-api-key +#--require-config omdbapi-api-key import json import Utils @@ -6,10 +6,8 @@ import Utils URL_OMDB = "http://www.omdbapi.com/" URL_IMDBTITLE = "http://imdb.com/title/%s" - class Module(object): _name = "IMDb" - def __init__(self, bot): self.bot = bot bot.events.on("received").on("command").on("imdb").hook( @@ -21,7 +19,7 @@ class Module(object): page = Utils.get_url(URL_OMDB, get_params={ "t": event["args"], "apikey": self.bot.config["omdbapi-api-key"]}, - json=True) + json=True) if page: if "Title" in page: event["stdout"].write("%s, %s (%s) %s (%s/10.0) %s" % ( |
