-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
50 lines (41 loc) · 1.3 KB
/
Copy pathrun.bat
File metadata and controls
50 lines (41 loc) · 1.3 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
@echo off
title Cerebro Bot by @MeoMunDep
color 0A
cd %~dp0
echo Checking for bot updates...
git pull origin main > nul 2>&1
echo Bot updated!
echo Checking configuration files...
if not exist configs.json (
echo {> configs.json
echo "chat": {>> configs.json
echo "enable": true,>> configs.json
echo "amount": [10, 20]>> configs.json
echo },>> configs.json
echo "timeToRestartAllAccounts": 300,>> configs.json
echo "howManyAccountsRunInOneTime": 100,>> configs.json
echo }>> configs.json
echo Created configs.json
)
(for %%F in (datas.txt proxies.txt) do (
if not exist %%F (
type nul > %%F
echo Created %%F
)
))
echo Configuration files checked.
echo Checking dependencies...
if exist "..\node_modules" (
echo Using node_modules from parent directory...
cd ..
CALL npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils meo-forkcy-proxy meo-forkcy-logger
cd %~dp0
) else (
echo Installing dependencies in current directory...
CALL npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils meo-forkcy-proxy meo-forkcy-logger
)
echo Dependencies installation completed!
echo Starting the bot...
node meomundep
pause
exit