-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautostart.py
executable file
·46 lines (36 loc) · 892 Bytes
/
autostart.py
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/env python3
from subprocess import call
START_CMD = "./start_bot.sh"
class BotConfig:
def __init__(self, name: str, psk: str, config: str):
self.name = name
self.psk = psk
self.config = config
def to_start_cmd(self):
cmd = f"{START_CMD} -n {self.name} -f {self.config} -p {self.psk} --detach"
return cmd
BOTS = [
BotConfig(
"PDEX-USDT-KC",
"123",
"conf_pure_mm_pdex-usdt-kc.yml"
),
BotConfig(
"FAR-USDT-GIO",
"123",
"conf_pure_mm_far-usdt-gio.yml"
),
BotConfig(
"XCAD-USDT-GIO",
"123",
"conf_pure_mm_xcad-usdt-gio.yml"
),
# BotConfig(
# "XDC-USDT-GIO",
# "123",
# "conf_pure_mm_xdc-usdt-gio.yml"
# )
]
if __name__ == "__main__":
for bot in BOTS:
call(bot.to_start_cmd(), shell=True)