check for yeah man

master
Matt Huntington 3 years ago
parent 241469f593
commit 2aa7922a09

@ -1,9 +1,12 @@
import praw
import re
reddit = praw.Reddit('bot1')
subreddit = reddit.subreddit('mahuntingtontest')
for comment in subreddit.stream.comments(skip_existing=True):
if comment.author != 'jazzbot2pointw000':
print(comment.id + " - " + comment.author.name + ": " + comment.body)
if comment.author != 'jazzbot2pointw000' and re.search('yeah,?\sman', comment.body, re.I):
comment.reply('yeah man')
print(comment.id)
print('replied')
print('-----')

Loading…
Cancel
Save