-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
71 lines (55 loc) · 1.82 KB
/
run.bat
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@echo off
cls
echo [101;93m V1.0.0 UP TO DATE! [0m
echo.
echo [34m[0m
::: ________ _____.__ __________ __
::: \______ \ _____/ ____\ | ___.__.\______ \ _____/ |_
::: | | \_/ __ \ __\| |< | | | | _// _ \ __\
::: | ` \ ___/| | | |_\___ | | | ( <_> ) |
::: /_______ /\___ >__| |____/ ____| |______ /\____/|__|
::: \/ \/ \/ \/
for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo [34m(%%A[0m
echo [0m[0m
if not exist "node_modules" (
goto install_node
)
if not exist ".env" (
goto setup_config
)
echo.
echo.
echo [36m(1) Proxy Server[0m
echo [36m(2) 1v1 Coin Farm[0m
set /p choice=[33m(Enter Choice): [0m
if %choice%==1 (
start cmd /k "cd scripts/internal/ && proxy.bat"
)
if %choice%==2 (
echo "Running 1v1 Coin Farm"
start cmd /k "cd scripts/internal/ && 1v1.bat"
)
exit
:install_node
echo [31mPackages not installed![0m
echo [34mPlease Wait...[0m
timeout /t 2 /nobreak >nul
cd scripts
call install.bat
cls
:setup_config
echo [31mConfig not setup![0m
echo [35mConfiguring Config based on your inputs. Values can be always changed by deleting .env file and running this, or editing the .env file directly.[0m
echo.
echo.
set /p username=[32m(Enter Username): [0m
echo DEFLY_USERNAME=%username% >> .env
set /p main_account=[32m(Enter Main Account): [0m
echo MAIN_ACCOUNT=%main_account% >> .env
set /p alt_account=[32m(Enter Alt Account): [0m
echo ALT_ACCOUNT=%alt_account% >> .env
rem "Main account token"
set /p main_token=[32m(Enter Main Account Token): [0m
echo TOKEN=%main_token% >> .env
echo [34mConfig configured. Exiting in 5 seconds[0m
timeout /t 5 /nobreak >nul