Fix piece of modules/define.py._get_definition( that was accepting a word or an
event.
This commit is contained in:
parent
aa0c9ec9f1
commit
7ab8948101
1 changed files with 0 additions and 2 deletions
|
@ -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[
|
||||
|
|
Loading…
Reference in a new issue