2b3d6a9ace6140c7364e65097755ad0c74e9a0d3
Reddit TestPostsBot
Usage
- Fill in your Reddit API credentials and subreddit name in
bot.py. - Create a wiki page in your subreddit named
testpostsbot_configwith JSON like:
{
"posts": [
{"title": "Test Post 1", "body": "Body for post 1"},
{"title": "Test Post 2", "body": "Body for post 2"}
]
}
- Build and run with Docker:
docker build -t testpostsbot .
docker run --env REDDIT_CLIENT_ID=... --env REDDIT_CLIENT_SECRET=... --env REDDIT_USERNAME=... --env REDDIT_PASSWORD=... --env SUBREDDIT=... testpostsbot
Or edit the variables directly in bot.py for quick testing.
Description
Languages
Python
92.1%
Dockerfile
7.9%