From 380a811fd1bbaa02d24ffebc2577b5eef85b8329 Mon Sep 17 00:00:00 2001 From: francesco Date: Tue, 1 Feb 2022 23:03:19 +0100 Subject: [PATCH] Implemented the App Lifecycle --- main.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 952b06b..3989b27 100644 --- a/main.py +++ b/main.py @@ -6,4 +6,15 @@ # Defining the main program bot = Bot() if __name__ == "__main__": - pass \ No newline at end of file + while True: + now = datetime.now() + h = now.strftime("%H") + m = now.strftime("%M") + print(h, ":", m) + time.sleep(1) + if h == bot.HOUR and m == bot.MINUTE: + bot.open_supreme_shop() + bot.ItemIterator() + bot.add_to_basket() + bot.go_checkout() + bot.Pay() \ No newline at end of file