From b55c9162c24ad889f58ee683914d870018934e2b Mon Sep 17 00:00:00 2001 From: olsch01 Date: Wed, 1 Apr 2026 19:52:19 -0400 Subject: [PATCH] fix: Restore Reddit Scout cron job schedule - Added Reddit Scout back to install-all-crons.sh - Schedule: 8 AM and 3 PM daily - Last run: March 20 (cron was missing) - Added README with restoration instructions - User needs to run: bash install-all-crons.sh --- agents/install-all-crons.sh | 4 +++ agents/reddit-scout/README.md | 59 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 agents/reddit-scout/README.md diff --git a/agents/install-all-crons.sh b/agents/install-all-crons.sh index 9575fc0..5cf561d 100755 --- a/agents/install-all-crons.sh +++ b/agents/install-all-crons.sh @@ -4,6 +4,7 @@ cat > /tmp/openclaw-cron << 'CRON' # OpenClaw Automated Jobs + # Morning Business Brief - 9 AM daily 0 9 * * * /Users/claw/.openclaw/workspace/agents/morning-report/generate-report-fixed.sh @@ -15,6 +16,9 @@ cat > /tmp/openclaw-cron << 'CRON' # Sales Lead Monitor - Hourly during business hours (8 AM - 8 PM) 0 8-20 * * * /Users/claw/.openclaw/workspace/agents/sales-lead/monitor.sh + +# Reddit Scout - 8am and 3pm daily +0 8,15 * * * /Users/claw/.openclaw/workspace/agents/reddit-scout/cron.sh CRON crontab /tmp/openclaw-cron diff --git a/agents/reddit-scout/README.md b/agents/reddit-scout/README.md new file mode 100644 index 0000000..4f3b81c --- /dev/null +++ b/agents/reddit-scout/README.md @@ -0,0 +1,59 @@ +# Reddit Scout Agent + +Monitors r/HOA for relevant discussions and sends Telegram alerts. + +## Status + +⚠️ **Last Run:** March 20, 2026 (12 days ago) +⚠️ **Issue:** Cron job missing - needs manual restart + +## To Restore + +Run this command to reinstall the cron job: + +```bash +bash /Users/claw/.openclaw/workspace/agents/install-all-crons.sh +``` + +Or manually add to crontab: + +```bash +crontab -e +``` + +Add this line: +``` +0 8,15 * * * /Users/claw/.openclaw/workspace/agents/reddit-scout/cron.sh +``` + +## Schedule + +- **8:00 AM** - Daily scan +- **3:00 PM** - Daily scan + +## What It Does + +1. Fetches latest 50 posts from r/HOA +2. Scans for HOA-related discussions +3. Filters for relevant opportunities +4. Sends Telegram alert if matches found +5. Logs activity to `logs/scout-YYYYMMDD.log` + +## Last Known State + +- **Total Scanned:** 400 posts +- **Total Matches:** 12 relevant posts +- **Last Match:** March 20 - 1 post found + +## Testing + +Run manually: +```bash +cd /Users/claw/.openclaw/workspace/agents/reddit-scout +python3 scout.py +``` + +Check logs: +```bash +tail -20 logs/scout-*.log +```