Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. if re.search(phrase, submissionall, re.IGNORECASE):
  2.     for k,v in phrases.items():
  3.         if phrase in v:
  4.             submission.add_comment(responses[k])
  5.             # Store the current id into our list
  6.             posts_replied_to.append(submission.id)
  7.             print "Bot replying to : ", submission.title + ' ' + submission.id
  8.             # this just exists the loop
  9.             break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement