Files

29 lines
829 B
PowerShell
Raw Permalink 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.
$Host.UI.RawUI.WindowTitle = "TDATA Checker"
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $ScriptDir
# Проверка Python
if (-not (Get-Command python -ErrorAction SilentlyContinue)) {
Write-Host "[ERROR] Python не найден. Установи Python 3.11+ с https://python.org" -ForegroundColor Red
exit 1
}
# Создание .venv если нет
if (-not (Test-Path ".venv")) {
Write-Host "[INFO] Создание виртуального окружения..."
python -m venv .venv
}
# Активация
& ".venv\Scripts\Activate.ps1"
# Установка зависимостей
Write-Host "[INFO] Установка зависимостей..."
python -m pip install --upgrade pip
pip install -r requirements.txt
cls
# Запуск бота
python main.py