[2026-05-15] 완전 자동화 - 봇 시작도 Claude Code 경유

- ~/.claude/commands/start-bot.md: /start-bot 슬래시 커맨드 추가
  (DETACHED_PROCESS로 Python 봇 백그라운드 실행 + Discord 알림)
- scripts/run_bot.ps1: python 직접 실행 → claude -p "/start-bot" 로 변경
- scripts/setup_scheduler.ps1: 3개 태스크 통합 재등록 스크립트 업데이트
- StockBot_Bot 태스크 업데이트 완료

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 14:10:51 +09:00
parent a65d7c297b
commit c4ac27b5ac
2 changed files with 43 additions and 50 deletions
+16
View File
@@ -0,0 +1,16 @@
# 매매 봇 시작 스크립트
# 작업 스케줄러에서 07:55에 실행 (평일)
# Claude Code가 /start-bot 커맨드를 실행 → Python 봇을 백그라운드로 띄움
$PROJECT = "C:\Users\whdwo\OneDrive\바탕 화면\stockbot_v3"
$LOG = "$PROJECT\logs\bot_start.log"
Set-Location $PROJECT
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Add-Content $LOG "[$timestamp] /start-bot 실행"
claude -p "/start-bot" --dangerously-skip-permissions *>> $LOG
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Add-Content $LOG "[$timestamp] /start-bot 완료"