From 5003f03acd0aaf50838ce357e9559ddbcdcdbb84 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 29 Apr 2023 11:33:50 -0700 Subject: [PATCH] formatted to execute --- youwilldie/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youwilldie/app.py b/youwilldie/app.py index a0a5c76..4ecb6e3 100644 --- a/youwilldie/app.py +++ b/youwilldie/app.py @@ -48,9 +48,10 @@ def turnOnLED(): # see if we should execute a certain command based on the current text block def process(text): - if "live" in text and "how long" in text: + formatted = text.lower() + if "live" in text and "how long" in formatted: tts.say("Heran") - elif "good morning" in text: + elif "good morning" in formatted: dt = datetime.now() dayOfWeek = dt.weekday() full_month_name = dt.strftime("%B")