From e9bd5222829dc5479c0b20cc7d81cc0af0fbbe9b Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 19 Dec 2024 14:27:26 +0100 Subject: [PATCH] Loop --- feed_chat_webhook/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/feed_chat_webhook/__main__.py b/feed_chat_webhook/__main__.py index 58872d5..e93ab27 100644 --- a/feed_chat_webhook/__main__.py +++ b/feed_chat_webhook/__main__.py @@ -1,4 +1,5 @@ import feedparser +import time import requests import secret_loader @@ -48,8 +49,9 @@ def check_for_new_updates(): def main(): - check_for_new_updates() - + while True: + check_for_new_updates() + time.sleep(600) if __name__ == '__main__': main()