simpler trigger
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ def turnOnLED():
|
|||||||
# see if we should execute a certain command based on the current text block
|
# see if we should execute a certain command based on the current text block
|
||||||
def process(text):
|
def process(text):
|
||||||
formatted = text.lower()
|
formatted = text.lower()
|
||||||
if "live" in text and "how long" in formatted:
|
if "live" in formatted:
|
||||||
# get the number of days left until 2058
|
# get the number of days left until 2058
|
||||||
daysLeftHeran = (datetime(2057, 1, 1) - datetime.now()).days
|
daysLeftHeran = (datetime(2057, 1, 1) - datetime.now()).days
|
||||||
daysLeftKam = (datetime(2043, 1, 1) - datetime.now()).days
|
daysLeftKam = (datetime(2043, 1, 1) - datetime.now()).days
|
||||||
|
|||||||
Reference in New Issue
Block a user