formatted to execute

This commit is contained in:
talksik
2023-04-29 11:33:50 -07:00
parent 5fffe2abee
commit 5003f03acd
+3 -2
View File
@@ -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")