|
1 | 1 | { |
| 2 | + "_comment": "Reddit Mod |
| 3 | + |
| 4 | +Log Wiki Publisher Configuration", |
| 5 | + "_comment_envars": "All settings can be overridden with environment variables. See README for details.", |
| 6 | + |
2 | 7 | "reddit": { |
| 8 | + "_comment": "Reddit API credentials - Get from https://www.reddit.com/prefs/apps", |
3 | 9 | "client_id": "YOUR_CLIENT_ID_HERE", |
4 | 10 | "client_secret": "YOUR_CLIENT_SECRET_HERE", |
5 | 11 | "username": "YOUR_BOT_USERNAME", |
6 | 12 | "password": "YOUR_BOT_PASSWORD" |
7 | 13 | }, |
| 14 | + |
8 | 15 | "source_subreddit": "YourSubreddit", |
| 16 | + "_comment_source_subreddit": "Subreddit to fetch modlog from and publish wiki to (env: SOURCE_SUBREDDIT)", |
| 17 | + |
9 | 18 | "wiki_page": "modlog", |
| 19 | + "_comment_wiki_page": "Wiki page name to publish to (env: WIKI_PAGE)", |
| 20 | + |
10 | 21 | "retention_days": 90, |
| 22 | + "_comment_retention_days": "Days to keep entries in database (1-365, env: RETENTION_DAYS)", |
| 23 | + |
11 | 24 | "batch_size": 50, |
| 25 | + "_comment_batch_size": "Number of modlog entries to fetch per run (10-500, env: BATCH_SIZE)", |
| 26 | + |
12 | 27 | "update_interval": 600, |
| 28 | + "_comment_update_interval": "Seconds between updates in continuous mode (60-3600, env: UPDATE_INTERVAL)", |
| 29 | + |
13 | 30 | "max_wiki_entries_per_page": 1000, |
| 31 | + "_comment_max_wiki_entries": "Maximum entries to show in wiki (100-2000)", |
| 32 | + |
| 33 | + "wiki_display_days": 90, |
| 34 | + "_comment_wiki_display_days": "Days of history to display in wiki (must be <= retention_days)", |
| 35 | + |
14 | 36 | "max_continuous_errors": 5, |
| 37 | + "_comment_max_errors": "Max consecutive errors before stopping (1-50)", |
| 38 | + |
15 | 39 | "rate_limit_buffer": 60, |
| 40 | + "_comment_rate_limit": "Extra seconds to wait after rate limit (30-300)", |
| 41 | + |
16 | 42 | "max_batch_retries": 3, |
| 43 | + "_comment_retries": "Max retries for failed batch fetches (1-10)", |
| 44 | + |
17 | 45 | "archive_threshold_days": 7, |
| 46 | + "_comment_archive": "Days before archiving old entries (1-30, affects database cleanup)", |
| 47 | + |
| 48 | + "anonymize_moderators": true, |
| 49 | + "_comment_anonymize": "Replace mod names with AutoModerator/HumanModerator (env: ANONYMIZE_MODERATORS)", |
| 50 | + |
18 | 51 | "ignored_moderators": ["AutoModerator"], |
| 52 | + "_comment_ignored": "Moderator names to exclude from modlog", |
| 53 | + |
| 54 | + "wiki_actions": [ |
| 55 | + "removelink", |
| 56 | + "removecomment", |
| 57 | + "spamlink", |
| 58 | + "spamcomment", |
| 59 | + "addremovalreason", |
| 60 | + "approvelink", |
| 61 | + "approvecomment" |
| 62 | + ], |
| 63 | + "_comment_wiki_actions": "Modlog action types to include in wiki. Remove this field to use defaults.", |
| 64 | + |
| 65 | + "database_path": "/config/data/modlog.db", |
| 66 | + "_comment_database": "Path to SQLite database (env: DATABASE_PATH)", |
| 67 | + |
19 | 68 | "display_format": { |
20 | 69 | "show_full_ids": false, |
21 | 70 | "id_format": "prefixed" |
22 | | - } |
| 71 | + }, |
| 72 | + "_comment_display": "Wiki display formatting options" |
23 | 73 | } |
0 commit comments