-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·46 lines (38 loc) · 1.56 KB
/
run
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
#!/usr/bin/bash
if [[ $1 == "help" ]]; then
echo -e "\nThis helps you to interact with sozo in an easier way.\n";
echo -e "\nUsage:";
echo -e " ./run [help] [build] [create USERNAME] [start GAME_MODE] [request IS_BOT] [run PARAMS]"
echo -e "\nOptions:";
echo -e " help Show this message";
echo -e " build Run build and migrate";
echo -e " katana Run Katana instance";
echo -e " torii Run Torii instance";
echo -e " create USERNAME Create user";
echo -e " start GAME_MODE Start new game";
echo -e " request IS_BOT Request ciphers";
echo -e " module PARAMS Run cipher module. Params are int:ARRAY_SIZE,[TYPE,VALUE],IS_BOT";
exit 1;
fi
if [[ $1 == "build" ]]; then
sozo build;
sozo migrate apply;
fi
if [[ $1 == "katana" ]]; then
katana --disable-fee --allowed-origins="*"
fi
if [[ $1 == "torii" ]]; then
torii --world 0x041023eff4fa7119869a4280237d47d6b5693e49820039c147098e222978d067 --allowed-origins="*"
fi
if [[ $1 == "create" ]]; then
sozo execute overdrive-playerActions create_player -c sstr:$2
fi
if [[ $1 == "start" ]]; then
sozo execute overdrive-gameActions create_game -c $(($2))
fi
if [[ $1 == "request" ]]; then
sozo execute overdrive-playerActions hack_ciphers -c $2
fi
if [[ $1 == "module" ]]; then
sozo execute overdrive-playerActions run_cipher_module -c $2
fi