From 5fefc7c2f091b861af3f61990671900a780df36d Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Fri, 8 Mar 2024 04:19:08 +0530 Subject: added schedule --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index c0a634f..c520892 100644 --- a/main.py +++ b/main.py @@ -74,9 +74,8 @@ def check(): print(f"Alert! BTC price is {btc_price} USD. Email sent.") -check() -# schedule.every().hour.do(check) +schedule.every().hour.do(check) -# while True: -# schedule.run_pending() -# time.sleep(1) +while True: + schedule.run_pending() + time.sleep(1) -- cgit v1.2.3-59-g8ed1b