diff options
| author | 2017-03-09 13:33:24 +0000 | |
|---|---|---|
| committer | 2017-03-09 13:33:24 +0000 | |
| commit | a69ac8541435d57ce1938822ca03bd8710c4848d (patch) | |
| tree | 9731c2c286ee79a2292d47696817f77b26e8d543 | |
| parent | NR: Use station_summary for service listing (diff) | |
| signature | ||
NR: Give 'arrivals' command more appropriate name, help now mentions buses
| -rw-r--r-- | modules/nr.py | 6 |
1 files changed, 3 insertions, 3 deletions
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="<crs_id>") 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] |
