forked from PCJones/ultimate-splinterlands-bot
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.bat
More file actions
37 lines (35 loc) · 792 Bytes
/
install.bat
File metadata and controls
37 lines (35 loc) · 792 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
@echo off
ECHO Bot created by PC Jones (based on bot by alfficcadenti) - have fun
ECHO Press any key to start the installation
PAUSE
call npm install
call npm update
cd node_modules/puppeteer
if exist .local-chromium (
ECHO chromium already exist. Updating chromium to the latest version.
rmdir /s /q .local-chromium
call node install
cd ..\..\
) else (
ECHO Installing latest version of chromium.
call node install
cd ..\..\
)
ECHO.
ECHO Installation complete!
ECHO.
:start
SET choice=
SET /p choice=Want to start the bot now? [Y/N]:
IF NOT '%choice%'=='' SET choice=%choice:~0,1%
IF /i '%choice%'=='Y' GOTO yes
IF /i '%choice%'=='N' GOTO no
IF '%choice%'=='' GOTO no
ECHO "%choice%" is not valid
ECHO.
GOTO start
:no
EXIT
:yes
ECHO Starting bot - have fun!
call start.bat