From 80bf0bb978747b10a86e401cac6083c0268b33c0 Mon Sep 17 00:00:00 2001 From: Evelyn Date: Sun, 10 Jul 2016 23:44:37 +0100 Subject: [PATCH] s/tflstop/tflsearch/ --- modules/tfl.py | 6 +++--- 1 file 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="") - 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="") @@ -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"]