[2026-06-01] Fix duplicate bot startup guards
This commit is contained in:
+1
-2
@@ -8,7 +8,6 @@ $env:PYTHONIOENCODING = "utf-8"
|
||||
$PROJECT = Split-Path -Parent $PSScriptRoot
|
||||
$LOG = "$PROJECT\logs\bot_start.log"
|
||||
. "$PROJECT\scripts\stockbot_env.ps1"
|
||||
$CLAUDE = Resolve-StockBotClaude
|
||||
$PYTHON = Resolve-StockBotPython -Project $PROJECT
|
||||
$utf8 = New-Object System.Text.UTF8Encoding $false
|
||||
|
||||
@@ -25,7 +24,7 @@ if ($LASTEXITCODE -ne 0) {
|
||||
$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 |
|
||||
& $PYTHON "scripts\start_bot.py" 2>&1 |
|
||||
ForEach-Object { [System.IO.File]::AppendAllText($LOG, "$_`n", $utf8) }
|
||||
|
||||
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
|
||||
|
||||
Reference in New Issue
Block a user