diff options
Diffstat (limited to 'modules/translate.py')
| -rw-r--r-- | modules/translate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/translate.py b/modules/translate.py index 8570ae76..3a8e5b91 100644 --- a/modules/translate.py +++ b/modules/translate.py @@ -6,7 +6,8 @@ URL_LANGUAGES = "https://cloud.google.com/translate/docs/languages" REGEX_LANGUAGES = re.compile("(\w+)?:(\w+)? ") class Module(ModuleManager.BaseModule): - @utils.hook("received.command.translate|tr") + @utils.hook("received.command.tr", alias_of="translate") + @utils.hook("received.command.translate") def translate(self, event): """ :help: Translate the provided phrase or the last line in thie current |
