From a69ac8541435d57ce1938822ca03bd8710c4848d Mon Sep 17 00:00:00 2001 From: Evelyn Date: Thu, 9 Mar 2017 13:33:24 +0000 Subject: NR: Give 'arrivals' command more appropriate name, help now mentions buses --- modules/nr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/nr.py b/modules/nr.py index de1bf1fd..fb626d8e 100644 --- a/modules/nr.py +++ b/modules/nr.py @@ -21,8 +21,8 @@ class Module(object): self.bot = bot self._client = None bot.events.on("received").on("command").on("nrtrains" - ).hook(self.arrivals, min_args=1, - help="Get train information for a station (Powered by NRE)", + ).hook(self.trains, min_args=1, + help="Get train/bus services for a station (Powered by NRE)", usage="") bot.events.on("received").on("command").on("nrservice" ).hook(self.service, min_args=1, @@ -79,7 +79,7 @@ class Module(object): ret["errors_summary"] = ", ".join(['"%s": %s' % (a[0], a[1]) for a in ret["errors"]]) return ret - def arrivals(self, event): + def trains(self, event): client = self.client colours = [Utils.COLOR_LIGHTBLUE, Utils.COLOR_GREEN, Utils.COLOR_RED, Utils.COLOR_CYAN, Utils.COLOR_LIGHTGREY] -- cgit v1.3.1-10-gc9f91