diff options
| author | 2019-06-10 23:06:47 +0100 | |
|---|---|---|
| committer | 2019-06-10 23:06:47 +0100 | |
| commit | 4dc957afe6714a753d9cb9aac17f1a692871a1f2 (patch) | |
| tree | 2b094058acae4be403de4aed4d5e3e493ba78b15 /modules/wikipedia.py | |
| parent | Add help/usage strings for ducks.py (diff) | |
| signature | ||
Make root wikipedia command !wikipedia, !wi and !wiki as aliases
Diffstat (limited to 'modules/wikipedia.py')
| -rw-r--r-- | modules/wikipedia.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
