-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
executable file
·63 lines (46 loc) · 3.13 KB
/
.env.example
File metadata and controls
executable file
·63 lines (46 loc) · 3.13 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
# ─── Required ────────────────────────────────────────────────────────────────
# Twitter/X credentials
TWITTER_USERNAME=your_twitter_username
TWITTER_PASSWORD=your_twitter_password
# Session cookies — export from x.com using the Cookie-Editor browser extension
# Click Export → Export as JSON, then paste the entire JSON array on one line (no surrounding quotes)
TWITTER_COOKIES=[{"name":"auth_token","value":"..."}]
# ─── Feeds ───────────────────────────────────────────────────────────────────
# Path to the feeds file to use
# data/ai_security_feeds.json — 40 feeds: AI + cybersecurity only (recommended)
# data/rss_feeds.json — 290 feeds across 9 categories
# data/tech_feeds.json — 143 feeds: tech + cybersecurity + science
FEEDS_FILE=data/ai_security_feeds.json
# Optional: further filter to a single category within the chosen feeds file
# Options for ai_security_feeds.json: ai, cybersecurity
# Leave empty to use all feeds in the file
CATEGORY=
# ─── Tuning ──────────────────────────────────────────────────────────────────
# How often to poll all feeds (continuous mode only, ignored when RUN_ONCE=true)
POLL_INTERVAL_MINUTES=5
# Ignore articles older than this (set to match your cron interval + 1h buffer)
MAX_ARTICLE_AGE_HOURS=7
# Minimum gap between consecutive tweets (seconds)
TWEET_DELAY_SECONDS=90
# Max tweets per run — prevents flooding on first run or after a long gap (0 = unlimited)
MAX_TWEETS_PER_RUN=5
# Set to true for single-run mode (GitHub Actions / cron). Omit or set false for continuous loop.
RUN_ONCE=false
# ─── Meme / AI Posts ─────────────────────────────────────────────────────────
# POST_MODE controls what the bot posts:
# news — news articles only (default)
# meme — AI-generated humor/hot takes only
# mixed — news articles + one AI meme post per run
POST_MODE=mixed
# Groq API key — required for meme/mixed mode (free at console.groq.com)
GROQ_API_KEY=
# Imgflip credentials — fallback meme images after memegen.link (free at imgflip.com)
IMGFLIP_USERNAME=
IMGFLIP_PASSWORD=
# ─── Second Account (Tech Bot) ───────────────────────────────────────────────
# Used by .github/workflows/post_tech.yml
# Add these as GitHub Actions secrets: TECH_TWITTER_USERNAME, TECH_TWITTER_PASSWORD, TECH_TWITTER_COOKIES
# For local testing with the tech account, swap these values in and set FEEDS_FILE=data/tech_feeds.json
TECH_TWITTER_USERNAME=your_tech_twitter_username
TECH_TWITTER_PASSWORD=your_tech_twitter_password
TECH_TWITTER_COOKIES=[{"name":"auth_token","value":"..."}]