No description
  • Python 94.7%
  • Dockerfile 5.3%
Find a file
2026-03-02 15:46:17 +05:30
.env.example Add Docker support and simplify bot 2026-03-02 15:06:45 +05:30
.gitignore Add Docker support and simplify bot 2026-03-02 15:06:45 +05:30
docker-compose.yml Add Docker support and simplify bot 2026-03-02 15:06:45 +05:30
Dockerfile Fix gunicorn worker timeout 2026-03-02 15:40:35 +05:30
image.png added readme 2025-08-27 21:35:24 +05:30
main.py Initialize bot on module load for Gunicorn 2026-03-02 15:46:17 +05:30
README.md Add Docker support and simplify bot 2026-03-02 15:06:45 +05:30
requirements.txt Add Docker support and simplify bot 2026-03-02 15:06:45 +05:30

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_AGENT
  • REDDIT_SUBREDDIT - subreddit to moderate (default: SuouYuki)
  • SAUCENAO_API_KEY - SauceNAO API key
  • REDIS_URL - Redis URL (e.g., redis://localhost:6379)
  • PORT - HTTP server port (default: 8080)

API Endpoints

  • GET / - Health check
  • GET /health - Detailed health status
  • GET /stats - Bot statistics
  • POST /reload - Reload the bot