https://github.com/elucidation/existential_rick_bot
Answers questions on rickandmorty subreddit
https://github.com/elucidation/existential_rick_bot
reddit reddit-bot
Last synced: about 1 year ago
JSON representation
Answers questions on rickandmorty subreddit
- Host: GitHub
- URL: https://github.com/elucidation/existential_rick_bot
- Owner: Elucidation
- License: mit
- Created: 2016-01-18T00:17:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-18T09:36:38.000Z (over 8 years ago)
- Last Synced: 2025-03-31T12:57:28.149Z (about 1 year ago)
- Topics: reddit, reddit-bot
- Language: Python
- Homepage: http://www.samansari.info/2016/05/existentialrickbot.html
- Size: 15.6 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExistentialRickBot
*[Autobuilding Docker image](https://hub.docker.com/r/elucidation/existential_rick_bot/) and updated for PRAW4.3*
[/u/ExistentialRickBot](https://www.reddit.com/user/ExistentialRickBot/) is a [Reddit](http://www.reddit.com) Bot who finds meaning in life by listening to submissions on [/r/rickandmorty](https://www.reddit.com/r/rickandmorty/) subreddit and answering any questions as best it can.
## Meaning
The phrase "[Don't think about it](https://youtu.be/ItV8utelYlc)" is said by Rick in the Pilot episode of [Rick & Morty](https://en.wikipedia.org/wiki/Rick_and_Morty).
## Logic
The core logic is found in [existential_rock_bot.py](existential_rick_bot.py#L15):
``` python
def isExistentialQuestion(message):
return '?' in message and any(
[q in message.lower() for q in ['why', 'happen', 'think', 'season 3', 'season three']])
def getAnswerToExistentialQuestion():
return "The answer is don't think about it."
```
ExistentialRickBot leaves a comment on such submissions, the response looks a bit like this:
The answer is don't think about it.
---
I am a bot | [`what is my purpose`](https://github.com/Elucidation/existential_rick_bot 'don't think about it')
## Developers
To set up praw credentials modify `example_praw.ini` with the correct credentials and rename the file to `praw.ini`.
One way to run this is to use `docker run elucidation/existential_rick_bot`.
## Feedback/Comments
Several options from low priority to high:
* Send a PM to ExistentialRickBot with comments.
* If there's an issue with a particular comment by ExistentialRickBot, please either reply to that comment with the issue and downvote as needed, I'll be adding auto-deletion if a comment goes negative.
* For software issues/suggestions/feature requests, create a new issue on this Github.