forked from Dawnnnnnn/bilibili-live-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
60 lines (46 loc) · 1.1 KB
/
run.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
49
50
51
52
53
54
55
56
57
58
from OnlineHeart import OnlineHeart
from Silver import Silver
from LotteryResult import LotteryResult
from Tasks import Tasks
from connect import connect
from rafflehandler import Rafflehandler
import asyncio
from login import login
import utils
from printer import Printer
from statistics import Statistics
from bilibili import bilibili
import threading
import biliconsole
loop = asyncio.get_event_loop()
loop1 = asyncio.get_event_loop()
printer = Printer()
bilibili()
Statistics()
rafflehandler = Rafflehandler()
biliconsole.Biliconsole()
task = OnlineHeart()
task1 = Silver()
task2 = Tasks()
task3 = LotteryResult()
task4 = connect()
console_thread = threading.Thread(target=biliconsole.controler)
console_thread.start()
tasks1 = [
login().login()
]
loop.run_until_complete(asyncio.wait(tasks1))
tasks = [
utils.fetch_user_info(),
utils.fetch_bag_list(),
task.run(),
task1.run(),
task2.run(),
biliconsole.Biliconsole().run(),
task4.connect(),
task3.query(),
rafflehandler.run()
]
loop.run_until_complete(asyncio.wait(tasks))
console_thread.join()
loop.close()