aboutsummaryrefslogtreecommitdiff
path: root/modules/thesaurus.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-26 10:59:03 +0100
committerGravatar jesopo2019-06-26 10:59:03 +0100
commit6667f49ee394a86cba0f9763d4afcd1b49a897c6 (patch)
treefb318bfbbc31ec1e5ab6c92f2f1f816a7ba7067c /modules/thesaurus.py
parentadd --depends-on hashflags to shorturl.py (diff)
dont use "|" multi-event syntax. it's weird
Diffstat (limited to 'modules/thesaurus.py')
-rw-r--r--modules/thesaurus.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/thesaurus.py b/modules/thesaurus.py
index 25754a47..d2a0b3a4 100644
--- a/modules/thesaurus.py
+++ b/modules/thesaurus.py
@@ -6,7 +6,8 @@ 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)
+ @utils.hook("received.command.synonym", min_args=1)
+ @utils.hook("received.command.antonym", min_args=1)
def thesaurus(self, event):
"""
:help: Get synonyms/antonyms for a provided phrase