parent
241469f593
commit
2aa7922a09
@ -1,9 +1,12 @@
|
|||||||
import praw
|
import praw
|
||||||
|
import re
|
||||||
|
|
||||||
reddit = praw.Reddit('bot1')
|
reddit = praw.Reddit('bot1')
|
||||||
subreddit = reddit.subreddit('mahuntingtontest')
|
subreddit = reddit.subreddit('mahuntingtontest')
|
||||||
|
|
||||||
for comment in subreddit.stream.comments(skip_existing=True):
|
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')
|
comment.reply('yeah man')
|
||||||
print(comment.id)
|
print('replied')
|
||||||
|
print('-----')
|
||||||
|
|||||||
Loading…
Reference in new issue