import praw, time
# from tomorrow_corrector import *

# replace with your username/password
username, password = USERNAME, PASSWORD

r = praw.Reddit(user_agent='A "tomorrow"-misspelling corrector by /u/tomorrow_corrector')
r.login(username, password, disable_warning=True)

misspellings = ['tommorow', 'tommorrow', 'tomorow']
comment_cache = []

def run_bot():
    '''Check /r/all for mispellings in comments and reply to them.'''
    subreddit = r.get_subreddit('all')
    comments = subreddit.get_comments(limit=25)
    for comment in comments:
        if any(string in comment.body.lower() for string in misspellings) and not comment.id in comment_cache:
            comment.reply('I think you meant "tomorrow".')
            comment_cache.append(comment.id)

while True:
    run_bot()
    time.sleep(30)

@@ -651,16 +651,90 @@
 _cache:%0A
+            print('Match found -- comment permalink:', comment.permalink)%0A
         
@@ -828,16 +828,58 @@
 ment.id)
+%0A            print('Responded to comment')
 %0A%0Awhile 

Update statuses when commenting