mirror of
https://github.com/Farhan291/r-SuouYuki_reddit_modbot.git
synced 2026-03-09 20:32:50 +00:00
No description
- Python 94.7%
- Dockerfile 5.3%
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| image.png | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
Reddit Mod Bot
A simple Reddit moderation bot for r/SuouYuki.
What It Does
- Image source lookup: Uses SauceNAO API to find sources for image posts
- AI post limit: Limits AI-flaired posts to 1 per week
- Health/stats API: HTTP endpoints for monitoring
Setup
# Install dependencies
pip install -r requirements.txt
# Create .env file (copy from .env.example)
cp .env.example .env
# Run the bot
python main.py
Or with Docker:
docker compose up --build -d
Environment Variables
REDDIT_CLIENT_ID,REDDIT_CLIENT_SECRET,REDDIT_USERNAME,REDDIT_PASSWORD,REDDIT_USER_AGENTREDDIT_SUBREDDIT- subreddit to moderate (default: SuouYuki)SAUCENAO_API_KEY- SauceNAO API keyREDIS_URL- Redis URL (e.g., redis://localhost:6379)PORT- HTTP server port (default: 8080)
API Endpoints
GET /- Health checkGET /health- Detailed health statusGET /stats- Bot statisticsPOST /reload- Reload the bot