From 4dc957afe6714a753d9cb9aac17f1a692871a1f2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 10 Jun 2019 23:06:47 +0100 Subject: Make root wikipedia command !wikipedia, !wi and !wiki as aliases --- modules/wikipedia.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/wikipedia.py b/modules/wikipedia.py index 1697aa92..cf7e44ca 100644 --- a/modules/wikipedia.py +++ b/modules/wikipedia.py @@ -6,7 +6,8 @@ URL_WIKIPEDIA = "https://en.wikipedia.org/w/api.php" class Module(ModuleManager.BaseModule): @utils.hook("received.command.wi", alias_of="wiki") - @utils.hook("received.command.wiki", min_args=1) + @utils.hook("received.command.wiki", alias_of="wikipedia") + @utils.hook("received.command.wikipedia", min_args=1) def wikipedia(self, event): """ :help: Get information from wikipedia -- cgit v1.3.1-10-gc9f91