skip existing comments when starting

master
Matt Huntington 3 years ago
parent 3042873384
commit 241469f593

@ -3,6 +3,7 @@ import praw
reddit = praw.Reddit('bot1') reddit = praw.Reddit('bot1')
subreddit = reddit.subreddit('mahuntingtontest') subreddit = reddit.subreddit('mahuntingtontest')
for comment in subreddit.stream.comments(): for comment in subreddit.stream.comments(skip_existing=True):
if comment.author != 'jazzbot2pointw000': if comment.author != 'jazzbot2pointw000':
comment.reply('yeah man') comment.reply('yeah man')
print(comment.id)

Loading…
Cancel
Save