-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
48 lines (34 loc) · 1016 Bytes
/
main.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
47
48
from threading import Thread
from refbot import referal_bot_loop
from distbot import distribution_bot_loop
from pay_handler import payment_handler_loop
from timer import timer_loop
class ReferalBotThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
referal_bot_loop()
class DistributionBotThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
distribution_bot_loop()
class PaymentHandlerThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
payment_handler_loop()
class TimerThread(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
timer_loop()
if __name__ == "__main__":
ReferalBotThread().start()
print('Referal bot started')
DistributionBotThread().start()
print('Distribution bot started')
PaymentHandlerThread().start()
print('Pay handler started')
TimerThread().start()
print('Timer started')