From 241469f5932bb65496a248fbed4b94836052c06d Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sat, 31 Dec 2022 11:02:39 -0500 Subject: [PATCH] skip existing comments when starting --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 16c6de7..44e824e 100644 --- a/app.py +++ b/app.py @@ -3,6 +3,7 @@ import praw reddit = praw.Reddit('bot1') subreddit = reddit.subreddit('mahuntingtontest') -for comment in subreddit.stream.comments(): +for comment in subreddit.stream.comments(skip_existing=True): if comment.author != 'jazzbot2pointw000': comment.reply('yeah man') + print(comment.id)