- Restore FIRST-RUN.md onboarding guide - Pin environment.yml to requirements.txt (was loose 24 packages) - Remove debug screenshots from git (debug_*.png -> .gitignore) - Remove .hermes/ dev plans from git (already in .gitignore) - Archive botty_next/ test harness to alexpolo1/my-botty-tools - Archive docs/legacy-go/ to alexpolo1/my-botty-tools - Move 14 dev tools from repo root to tools/ directory - Extend .gitignore to prevent dev artifacts re-entering root - Promote stable branch with all bug fixes from main - Bump version 0.8.4 -> 0.9.1
12 lines
909 B
PowerShell
12 lines
909 B
PowerShell
$taskName = 'RunBottyNow'
|
|
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false -ErrorAction SilentlyContinue
|
|
|
|
$action = New-ScheduledTaskAction -Execute 'C:\Users\alex\.conda\envs\botty\python.exe' -Argument 'C:\Users\alex\Downloads\my-botty\src\main.py' -WorkingDirectory 'C:\Users\alex\Downloads\my-botty'
|
|
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
|
|
$principal = New-ScheduledTaskPrincipal -UserId 'alex' -LogonType Interactive -RunLevel Limited
|
|
Register-ScheduledTask -TaskName $taskName -Action $action -Settings $settings -Principal $principal -Force
|
|
Start-ScheduledTask -TaskName $taskName
|
|
Start-Sleep -Seconds 5
|
|
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false -ErrorAction SilentlyContinue
|
|
Get-Process python -ErrorAction SilentlyContinue | Where-Object { $_.SessionId -eq 1 } | Select-Object Id,SessionId,StartTime | Format-Table
|