diff options
| author | 2018-09-27 11:46:10 +0100 | |
|---|---|---|
| committer | 2018-09-27 11:46:10 +0100 | |
| commit | 8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f (patch) | |
| tree | 2481de34452598ff3d3ca579612a0fdc0dc0edc5 /modules/thesaurus.py | |
| parent | Implement @Utils.export, to denote an export on a module (diff) | |
| signature | ||
Use ModuleManager.BaseModule in more modules
Diffstat (limited to 'modules/thesaurus.py')
| -rw-r--r-- | modules/thesaurus.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/thesaurus.py b/modules/thesaurus.py index 3791d609..b34c2f04 100644 --- a/modules/thesaurus.py +++ b/modules/thesaurus.py @@ -1,13 +1,10 @@ #--require-config bighugethesaurus-api-key -from src import Utils +from src import ModuleManager, Utils URL_THESAURUS = "http://words.bighugelabs.com/api/2/%s/%s/json" -class Module(object): - def __init__(self, bot, events, exports): - self.bot = bot - +class Module(ModuleManager.BaseModule): @Utils.hook("received.command.synonym|antonym", min_args=1, usage="<word> [type]") def thesaurus(self, event): |
