import praw, time

# 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)


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:

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

@@ -232,16 +232,87 @@
 =True)%0A%0A
+misspellings = %5B'tommorow', 'tommorrow', 'tomorow'%5D%0Acomment_cache = %5B%5D%0A
 %0Adef run
@@ -504,16 +504,231 @@
 omments:
+%0A        if any(string in comment.body.lower() for string in misspellings) and not comment.id in comment_cache:%0A            comment.reply('I think you meant %22tomorrow%22.')%0A            comment_cache.append(comment.id)
 %0A%0Awhile 

Check if comment body contains misspelling, reply if so