From 4db18513cbf647d5e9dd7a4c20266470c4752818 Mon Sep 17 00:00:00 2001
From: jwansek <eddie.atten.ea29@gmail.com>
Date: Tue, 6 Jun 2023 13:31:54 +0100
Subject: Added sleep to reduce API polling rate

---
 subreddit.py | 1 +
 1 file changed, 1 insertion(+)

(limited to 'subreddit.py')

diff --git a/subreddit.py b/subreddit.py
index c31f5f3..4beeed6 100755
--- a/subreddit.py
+++ b/subreddit.py
@@ -293,6 +293,7 @@ def stream(reddit):
                             reply = item.reply(handle_submission(item, reddit) + COMMENT_TAIL)
                             reply.mod.distinguish(sticky = True)
                             reply.mod.approve()
+            time.sleep(30)
 
 def main():
     reddit = praw.Reddit(**CONFIG["redditapi"])
-- 
cgit v1.2.3