From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/thesaurus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/thesaurus.py') diff --git a/modules/thesaurus.py b/modules/thesaurus.py index b34c2f04..8d5d540e 100644 --- a/modules/thesaurus.py +++ b/modules/thesaurus.py @@ -5,11 +5,11 @@ from src import ModuleManager, Utils URL_THESAURUS = "http://words.bighugelabs.com/api/2/%s/%s/json" class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.synonym|antonym", min_args=1, - usage=" [type]") + @Utils.hook("received.command.synonym|antonym", min_args=1) def thesaurus(self, event): """ - Get synonyms/antonyms for a provided phrase + :help: Get synonyms/antonyms for a provided phrase + :usage: [type] """ phrase = event["args_split"][0] page = Utils.get_url(URL_THESAURUS % (self.bot.config[ -- cgit v1.3.1-10-gc9f91