Change !gh to be an alias of !github (github.py)

This commit is contained in:
jesopo 2019-01-13 22:06:41 +00:00
parent 598fcb80b9
commit 7e85197d47

View file

@ -102,7 +102,8 @@ class Module(ModuleManager.BaseModule):
else: else:
event["stderr"].write("Could not find pull request") event["stderr"].write("Could not find pull request")
@utils.hook("received.command.gh", min_args=1) @utils.hook("received.command.gh", alias_of="github")
@utils.hook("received.command.github", min_args=1)
def github(self, event): def github(self, event):
username, repository, number = self._parse_ref( username, repository, number = self._parse_ref(
event["target"], event["args_split"][0]) event["target"], event["args_split"][0])