-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathrun_bot.bat
More file actions
41 lines (36 loc) · 921 Bytes
/
run_bot.bat
File metadata and controls
41 lines (36 loc) · 921 Bytes
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
@echo off
echo ===============================================
echo COC Attack Bot - Windows Launcher
echo ===============================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.8 or later from https://python.org
pause
exit /b 1
)
REM Check if requirements are installed
echo Checking dependencies...
pip show pyautogui >nul 2>&1
if errorlevel 1 (
echo Installing required packages...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install requirements
pause
exit /b 1
)
)
echo Starting COC Attack Bot...
echo.
python main.py
if errorlevel 1 (
echo.
echo Bot exited with error code %errorlevel%
echo Check the logs folder for more information
)
echo.
echo Bot has stopped.
pause