diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/thesaurus.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/thesaurus.py')
| -rw-r--r-- | modules/thesaurus.py | 6 |
1 files changed, 3 insertions, 3 deletions
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="<word> [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: <word> [type] """ phrase = event["args_split"][0] page = Utils.get_url(URL_THESAURUS % (self.bot.config[ |
