# FalahOS Sales Automation — Crontab
# Install: crontab -e
# Then paste this file's contents

# Every 6 hours: main automation (mautic broadcast, gumroad cart recovery, ghost publish, analytics)
0 */6 * * * cd /Users/wmj24/Desktop/nur-muslim-companion && python scripts/automation.py >> logs/automation.log 2>&1

# Sunday 6 AM: weekly lead scrape
0 6 * * 0 cd /Users/wmj24/Desktop/nur-muslim-companion && python scripts/scout_scrape.py >> logs/scout.log 2>&1

# Daily 7 AM: analytics snapshot
0 7 * * * cd /Users/wmj24/Desktop/nur-muslim-companion && python scripts/analytics.py >> logs/analytics.log 2>&1

# Friday 10 AM: PWA deploy (if needed)
0 10 * * 5 cd /Users/wmj24/Desktop/nur-muslim-companion && npm run build && npm run preview >> logs/deploy.log 2>&1

# Create logs directory
# mkdir -p /Users/wmj24/Desktop/nur-muslim-companion/logs