From 8b0314b190b02f7e83fe0dae3c349ce4dffdcb4f Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Sep 2018 11:46:10 +0100 Subject: Use ModuleManager.BaseModule in more modules --- modules/thesaurus.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/thesaurus.py') 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=" [type]") def thesaurus(self, event): -- cgit v1.3.1-10-gc9f91