From 7295306107acf074c1975f3613c3a952e1e53f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 22 Oct 2019 20:23:15 +0200 Subject: [PATCH] fix response string detection --- dudlebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dudlebot.py b/dudlebot.py index cdc0dce..7a9a669 100644 --- a/dudlebot.py +++ b/dudlebot.py @@ -61,7 +61,7 @@ class DudleBot: update.message.reply_text("No plan created yet! (Speak /newplan to do so.)") return - responses_str = update.message.text[len("/plan"):] + responses_str = " ".join(update.message.text.split(" ")[1:]) responses_str = re.sub(r'[^A-Za-z?]', '', responses_str) responses_str = [char.upper() for char in responses_str]