Creating ExistentialRickBot, probably the silliest Redditbot yet
So I'd written SchmeckleBot , a simple bot that converts currency from schmeckles to USD. But I decided to go even simpler, still in the theme of Rick and Morty (if you loved Futurama watch this!). In the pilot episode, when Morty sees something during a chase scene that causes an existential crisis, Rick quickly snaps him out of it with the pithy quote ' Don't think about it! '. It should be immediately obvious that a reddit bot needs to exist and reply with that quote whenever an existential question is asked on the r/rickandmorty subreddit . And thus was born ExistentialRickBot . The core logic is dead simple, if an existential question is posted, respond with an existential answer. questions = [ 'why' , 'happen' , 'think' ] # Match if any of these are found in message def isExistentialQuestion (message): return '?' in message and any ([q in message . lower() for q in questions]) def getAnswerToExistentialQuestio