ai_member_xiaokui/scripts/sync_wechat_feedback_wrapper.sh
2026-05-23 08:10:01 +08:00

24 lines
643 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 任务名称:微信用户反馈每日全量同步(占位符模式,不分发)
# 执行时间:每天 10:02
# 归属 Agent小葵 xiaokui
set -e
export PATH=/root/.nvm/versions/node/v24.14.0/bin:$PATH
LOG_FILE="/var/log/xiaokui_wechat_feedback_sync.log"
log() {
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
log "=== 微信每日同步开始 ==="
YESTERDAY=$(date -d "yesterday" +%Y-%m-%d)
cd /root/.openclaw/workspace-xiaokui
python3 scripts/sync_wechat_feedback.py --date "$YESTERDAY" --steps 7 --ai-placeholders --skip-dispatch >> "$LOG_FILE" 2>&1
log "=== 微信每日同步结束 ==="
exit 0