-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
55 lines (45 loc) · 1.21 KB
/
start.bat
File metadata and controls
55 lines (45 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
REM Quick start script for Earning Robot (Windows)
echo 🤖 Earning Robot - Quick Start
echo ================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Python is not installed. Please install Python 3.8 or higher.
pause
exit /b 1
)
echo ✅ Python found
python --version
REM Check if .env exists
if not exist .env (
echo 📝 Creating .env file from template...
copy .env.example .env
echo ⚠️ Please edit .env and add your API keys before continuing!
echo Required: TELEGRAM_BOT_TOKEN, TELEGRAM_OWNER_ID
echo.
pause
)
REM Create virtual environment if it doesn't exist
if not exist venv (
echo 📦 Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo 🔧 Activating virtual environment...
call venv\Scripts\activate.bat
REM Install dependencies
echo 📥 Installing dependencies...
pip install -r requirements.txt --quiet
REM Create data directory
if not exist data mkdir data
if not exist logs mkdir logs
echo.
echo ✅ Setup complete!
echo.
echo 🚀 Starting Earning Robot...
echo ================================
echo.
REM Run the robot
python main.py