diff --git a/scripts/run_morning.ps1 b/scripts/run_morning.ps1 index a3bb64e..df428a3 100644 --- a/scripts/run_morning.ps1 +++ b/scripts/run_morning.ps1 @@ -20,3 +20,13 @@ $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" [System.IO.File]::AppendAllText($LOG, "[$timestamp] claude_morning 완료`n", $utf8) + +# 모닝 완료 후 봇 시작 (daily_context.json 생성 보장 후 시작) +$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" +[System.IO.File]::AppendAllText($LOG, "[$timestamp] /start-bot 시작`n", $utf8) + +& $CLAUDE -p "/start-bot" --dangerously-skip-permissions 2>&1 | + ForEach-Object { [System.IO.File]::AppendAllText($LOG, "$_`n", $utf8) } + +$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" +[System.IO.File]::AppendAllText($LOG, "[$timestamp] /start-bot 완료`n", $utf8)