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

22 lines
566 B
Bash
Executable File
Raw 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
# 任务名称飞书问题反馈实时同步步骤1-3写入电子表格
# 执行时间:每 5 分钟
# 归属 Agent小葵 xiaokui
set -e
export PATH=/root/.nvm/versions/node/v24.14.0/bin:$PATH
LOG_FILE="/var/log/xiaokui_feedback_realtime.log"
log() {
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
log "=== 实时同步开始 ==="
cd /root/.openclaw/workspace-xiaokui
python3 skills/feishu-feedback-sync/scripts/sync_feishu_feedback.py --days 3 --steps 1-3 >> "$LOG_FILE" 2>&1
log "=== 实时同步结束 ==="
exit 0