mirror of
https://github.com/michivonah/themepark-alerts.git
synced 2025-12-22 20:36:27 +01:00
create main loop
This commit is contained in:
parent
9703e4ddf1
commit
5571ae24d2
1 changed files with 5 additions and 1 deletions
6
main.py
6
main.py
|
|
@ -2,6 +2,7 @@ import requests
|
|||
import os
|
||||
from dotenv import load_dotenv
|
||||
from discord_webhook import DiscordWebhook
|
||||
import time
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
|
@ -33,5 +34,8 @@ def checkTimes(subscribedAttractions, alertlimit):
|
|||
|
||||
# Main
|
||||
if __name__ == '__main__':
|
||||
checkTimes(subscribedAttractions, waitingtimeAlert)
|
||||
while True:
|
||||
checkTimes(subscribedAttractions, waitingtimeAlert)
|
||||
print(f"Checked for updates at {time.strftime('%H:%M:%S', time.localtime())}")
|
||||
time.sleep(30)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue