From 40af2baeabf460cf41209b85faed87f48a01ccf7 Mon Sep 17 00:00:00 2001 From: Michael Tan Date: Fri, 17 Jan 2020 09:54:26 -0600 Subject: [PATCH] Switching from logging to publishing. --- linkmakerbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linkmakerbot.py b/linkmakerbot.py index 9e47d14..885b06b 100644 --- a/linkmakerbot.py +++ b/linkmakerbot.py @@ -48,9 +48,9 @@ for submission in subreddit.hot(limit=5): # Do a case insensitive search myreply = check_for_string(r'xkcd \d+',submission.title) if myreply: - print(myreply) + #print(myreply) # Reply to the post - #submission.reply(myreply) + submission.reply(myreply) tempMessage="Bot replying to: %s with ID: %s" %(submission.title,submission.id) print(tempMessage) #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) if myreply: - print(myreply) + #print(myreply) # 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) print(tempMessage) #print("Waiting so we don't exceed rate limit...")