Skip to content

Commit

Permalink
Implemented the App Lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
saccofrancesco committed Feb 1, 2022
1 parent 575d008 commit 380a811
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@
# Defining the main program
bot = Bot()
if __name__ == "__main__":
pass
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()

0 comments on commit 380a811

Please sign in to comment.