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
4
main.py
4
main.py
|
|
@ -2,6 +2,7 @@ import requests
|
||||||
import os
|
import os
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from discord_webhook import DiscordWebhook
|
from discord_webhook import DiscordWebhook
|
||||||
|
import time
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
|
|
@ -33,5 +34,8 @@ def checkTimes(subscribedAttractions, alertlimit):
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
while True:
|
||||||
checkTimes(subscribedAttractions, waitingtimeAlert)
|
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