From bb3c729317b2c005888faeabdf1b699a2c05d662 Mon Sep 17 00:00:00 2001 From: talksik Date: Sat, 29 Apr 2023 11:41:29 -0700 Subject: [PATCH] simpler trigger --- youwilldie/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youwilldie/app.py b/youwilldie/app.py index 72fbf7c..1181678 100644 --- a/youwilldie/app.py +++ b/youwilldie/app.py @@ -49,7 +49,7 @@ def turnOnLED(): # see if we should execute a certain command based on the current text block def process(text): formatted = text.lower() - if "live" in text and "how long" in formatted: + if "live" in formatted: # get the number of days left until 2058 daysLeftHeran = (datetime(2057, 1, 1) - datetime.now()).days daysLeftKam = (datetime(2043, 1, 1) - datetime.now()).days