Initial commit

This commit is contained in:
2026-03-04 23:01:36 +00:00
commit 2b3d6a9ace
7 changed files with 114 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# Reddit TestPostsBot
## Usage
1. Fill in your Reddit API credentials and subreddit name in `bot.py`.
2. Create a wiki page in your subreddit named `testpostsbot_config` with JSON like:
```
{
"posts": [
{"title": "Test Post 1", "body": "Body for post 1"},
{"title": "Test Post 2", "body": "Body for post 2"}
]
}
```
3. 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.