https://github.com/tianle91/astroturf
Simulate responses of a real redditor
https://github.com/tianle91/astroturf
bot nlp reddit
Last synced: 8 months ago
JSON representation
Simulate responses of a real redditor
- Host: GitHub
- URL: https://github.com/tianle91/astroturf
- Owner: tianle91
- Created: 2020-06-19T18:32:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T01:20:58.000Z (almost 5 years ago)
- Last Synced: 2023-03-06T05:56:29.212Z (over 3 years ago)
- Topics: bot, nlp, reddit
- Language: Python
- Homepage:
- Size: 1.17 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Astroturf
Are you...
- Curious how users might respond to a submission or comment?
- Don't want to wait for a response?
- Want a shitty bot to talk to?
Look no further!
Bot responds to mentions of reddit users in comments.
Currently only monitors [r/AskReddit](https://www.reddit.com/r/AskReddit).

# Architecture
Works locally like so:

# Deploy
You'll need a `praw.ini`.
By default it looks for `praw.ini` and finds credentials under `[astroturf_bot]`.
It looks something like the following (get your own keys [here](https://www.reddit.com/prefs/apps)):
```ini
[astroturf_bot]
client_id=???
client_secret=???
password=???
user_agent=???
username=???
```
Steps:
1. Build the image. `docker build -t astroturf .`
2. Deploy. `docker-compose up`