Browse Source

Switching from logging to publishing.

master
Michael Tan 6 years ago
parent
commit
40af2baeab
  1. 8
      linkmakerbot.py

8
linkmakerbot.py

@ -48,9 +48,9 @@ for submission in subreddit.hot(limit=5):
# Do a case insensitive search # Do a case insensitive search
myreply = check_for_string(r'xkcd \d+',submission.title) myreply = check_for_string(r'xkcd \d+',submission.title)
if myreply: if myreply:
print(myreply) #print(myreply)
# Reply to the post # Reply to the post
#submission.reply(myreply) submission.reply(myreply)
tempMessage="Bot replying to: %s with ID: %s" %(submission.title,submission.id) tempMessage="Bot replying to: %s with ID: %s" %(submission.title,submission.id)
print(tempMessage) print(tempMessage)
#print("Waiting so we don't exceed rate limit...") #print("Waiting so we don't exceed rate limit...")
@ -63,9 +63,9 @@ for submission in subreddit.hot(limit=5):
myreply = check_for_string(r'xkcd \d+',thisComment.body) myreply = check_for_string(r'xkcd \d+',thisComment.body)
if myreply: if myreply:
print(myreply) #print(myreply)
# Reply to the comment # Reply to the comment
#thisComment.reply(myreply) thisComment.reply(myreply)
tempMessage="Bot replying to a comment in: %s with ID: %s" %(submission.title,thisComment.id) tempMessage="Bot replying to a comment in: %s with ID: %s" %(submission.title,thisComment.id)
print(tempMessage) print(tempMessage)
#print("Waiting so we don't exceed rate limit...") #print("Waiting so we don't exceed rate limit...")

Loading…
Cancel
Save