diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/define.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
| signature | ||
Reformat
Diffstat (limited to 'modules/define.py')
| -rw-r--r-- | modules/define.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/define.py b/modules/define.py index c5e62b6a..468f5fab 100644 --- a/modules/define.py +++ b/modules/define.py @@ -1,9 +1,10 @@ -#--require-config wordnik-api-key +# --require-config wordnik-api-key import Utils URL_WORDNIK = "http://api.wordnik.com:80/v4/word.json/%s/definitions" + class Module(object): def __init__(self, bot): self.bot = bot @@ -23,7 +24,7 @@ class Module(object): if page: if len(page): event["stdout"].write("%s: %s" % (page[0]["word"], - page[0]["text"])) + page[0]["text"])) else: event["stderr"].write("No definitions found") else: |
