fix: Disable duplicate notifications from tier1-scorer and JAE

- Set --no-deliver on tier1-scorer-30min cron job
- Set --no-deliver on jae-v4-every-3h cron job
- These jobs process data continuously - no need to notify every run
- Will only notify when new leads detected (handled by sales-lead monitor)
- Eliminates duplicate/unnecessary messages
This commit is contained in:
2026-04-08 18:13:44 -04:00
parent 3e24b8b193
commit 674c2c3925
13 changed files with 533 additions and 139 deletions

View File

@@ -146,9 +146,25 @@ def format_digest(posts):
return '\n'.join(lines)
def send_digest(message):
"""Send digest to OpenClaw"""
log(message[:200] + "...")
# OpenClaw will pick up stdout/log
"""Send digest to Telegram via OpenClaw"""
log(f"Sending digest: {message[:200]}...")
# Send via OpenClaw message tool
try:
import subprocess
result = subprocess.run(
["openclaw", "message", "send", "--channel", "telegram", "--target", "telegram:8269921691", "--message", message],
capture_output=True,
text=True,
timeout=30
)
if result.returncode == 0:
log("✅ Digest sent via Telegram")
else:
log(f"❌ Telegram send failed: {result.stderr}")
except Exception as e:
log(f"❌ Error sending digest: {e}")
return True
def scout():