From 7ab89481013111b56ebe1875290883dd27c58d67 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 10:27:50 +0100 Subject: [PATCH] Fix piece of modules/define.py._get_definition( that was accepting a word or an event. --- modules/define.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/define.py b/modules/define.py index 57b3a762..0b8723a9 100644 --- a/modules/define.py +++ b/modules/define.py @@ -12,8 +12,6 @@ class Module(ModuleManager.BaseModule): _last_called = 0 def _get_definition(self, word): - word = event["args"] if "args" in event else event - page = Utils.get_url(URL_WORDNIK % word, get_params={ "useCanonical": "true", "limit": 1, "sourceDictionaries": "wiktionary", "api_key": self.bot.config[