Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def search():
- for submission in subreddit.new(limit=25):
- if (submission.author == 'coloradoconvict'): # this is one of my posts
- print("Working one of my submissions...")
- print(submission.title)
- print(submission.created_utc)
- for comment in submission.comments:
- if (comment.id not in comments_replied_to): # we haven't answered this one
- found=comment.body.find('$bid')
- if (found != -1): # this comment contains the keyword
- reddit.redditor(comment.author.name).message('Thanks for your bid!', BigAssMessage)
- comments_replied_to.append(comment.id)
- print("Message sent!")
- bids_processed += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement