aboutsummaryrefslogtreecommitdiff
path: root/modules/tfl.py
diff options
context:
space:
mode:
authorGravatar Evelyn2016-07-10 23:44:37 +0100
committerGravatar Evelyn2016-07-10 23:44:37 +0100
commit80bf0bb978747b10a86e401cac6083c0268b33c0 (patch)
tree618851f7fcab186021ac70e11e5ab351a0eb62c5 /modules/tfl.py
parentTfL stop search, 'bus' can now accept proper IDs, fixed issue with time in ms (diff)
signature
s/tflstop/tflsearch/
Diffstat (limited to 'modules/tfl.py')
-rw-r--r--modules/tfl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/tfl.py b/modules/tfl.py
index 88c70587..4667f6dc 100644
--- a/modules/tfl.py
+++ b/modules/tfl.py
@@ -22,8 +22,8 @@ class Module(object):
).hook(self.line,
help="Get line status for TfL underground lines",
usage="<line_name>")
- bot.events.on("received").on("command").on("tflstop"
- ).hook(self.stop, min_args=1,
+ bot.events.on("received").on("command").on("tflsearch"
+ ).hook(self.search, min_args=1,
help="Get a list of TfL stop IDs for a given name",
usage="<name>")
@@ -126,7 +126,7 @@ class Module(object):
else:
event["stderr"].write("No results")
- def stop(self, event):
+ def search(self, event):
app_id = self.bot.config["tfl-api-id"]
app_key = self.bot.config["tfl-api-key"]
stop_name = event["args"]