Automated Reddit moderation log publisher — writes mod actions to a subreddit wiki page on a schedule.
- Python 3.11 / PRAW (Reddit API)
- SQLite (deduplication and retention)
- Docker with s6-overlay (deployment)
/opt/.venv/redditbot/bin/python modlog_wiki_publisher.py --test
/opt/.venv/redditbot/bin/python modlog_wiki_publisher.py --source-subreddit NAME --continuousAlways use /opt/.venv/redditbot/bin/python, not system python.
modlog_wiki_publisher.py— Single-file application (ModlogDatabase class + main logic)config_template.json— Config templatescripts/debug_auth.py— Auth debugging utilitytests/— Test suite
CLI args > Environment variables > JSON config file
REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USERNAME, REDDIT_PASSWORD, SOURCE_SUBREDDIT
anonymize_moderatorsMUST betrue(enforced, app refuses to start otherwise)- Content links must never point to user profiles — only to posts/comments
- Escape pipe characters in removal reasons for markdown table compatibility
Image: ghcr.io/baker-scripts/redditmodlog
Tags: :1, :1.4, :1.4.x, :latest
Uses s6-overlay for init, PUID/PGID user management.
- Conventional commits
- May commit/push directly if branch is not main and PR is draft or not open