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
This commit is contained in:
@@ -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
|
||||
|
||||
59
agents/reddit-scout/README.md
Normal file
59
agents/reddit-scout/README.md
Normal file
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user