-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (54 loc) · 1.8 KB
/
.env.example
File metadata and controls
71 lines (54 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Reddit API Credentials
REDDIT_CLIENT_ID=your_client_id_here
REDDIT_CLIENT_SECRET=your_client_secret_here
REDDIT_USERNAME=your_reddit_username
REDDIT_PASSWORD=your_reddit_password
REDDIT_USER_AGENT=android:com.yourname.redditcommentagent:v2.1 (by /u/YourUsername)
# Allowed Subreddits (comma-separated)
ALLOWED_SUBREDDITS=sysadmin,learnpython,startups
# LLM API Keys (Choose one)
OPENAI_API_KEY=your_openai_key_here
# ANTHROPIC_API_KEY=your_anthropic_key_here
# GEMINI_API_KEY=your_gemini_key_here
# Notification Settings
# Type: webhook, telegram, or slack
NOTIFICATION_TYPE=webhook
# Generic Webhook (if NOTIFICATION_TYPE=webhook)
WEBHOOK_URL=https://your-webhook-url
WEBHOOK_SECRET=your-secret-key-for-hmac-signing
# Telegram (if NOTIFICATION_TYPE=telegram)
TELEGRAM_BOT_TOKEN=your-bot-token
TELEGRAM_CHAT_ID=your-chat-id
# Slack (if NOTIFICATION_TYPE=slack)
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxx/yyy/zzz
SLACK_CHANNEL=#your-channel
# Database
DATABASE_URL=sqlite:///./reddit_agent.db
# Safety Limits
MAX_COMMENTS_PER_DAY=8
MAX_COMMENTS_PER_RUN=3
SHADOWBAN_RISK_THRESHOLD=0.7
COOLDOWN_PERIOD_HOURS=24
# Timing (seconds)
MIN_JITTER_SECONDS=900
MAX_JITTER_SECONDS=3600
# Token limits
MAX_CONTEXT_TOKENS=2000
# Mode
DRY_RUN=false
PUBLIC_URL=
POST_REPLY_RATIO=0.3 #30% posts, 70% comments
MAX_POST_REPLIES_PER_RUN=1 #Max post replies per run
MAX_COMMENT_REPLIES_PER_RUN=2 #Max comment replies per run
# Phase A: Inbox Priority System
INBOX_PRIORITY_ENABLED=True
INBOX_COOLDOWN_HOURS=6
RISING_COOLDOWN_HOURS=24
# Phase B: Subreddit Diversity System
DIVERSITY_ENABLED=True
MAX_PER_SUBREDDIT=2
MAX_PER_POST=1
DIVERSITY_QUALITY_BOOST_THRESHOLD=0.75
# Exploration (Phase B - Increased for variety)
SCORE_EXPLORATION_RATE=0.25 # 25% randomization (up from 15%)
SCORE_TOP_N_RANDOM=5 # Randomize top 5 (up from 3)