forked from Dawnnnnnn/bilibili-live-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LotteryResult.py
32 lines (25 loc) · 946 Bytes
/
LotteryResult.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
from statistics import Statistics
import requests
import asyncio
import time
class LotteryResult():
async def query(self):
while 1:
# print('lotteryresult test')
await Statistics().clean_activity()
await Statistics().clean_TV()
# print('自动延迟参数', sleeptime1, sleeptime2)
await asyncio.sleep(30)
'''
if sleeptime1 != None and sleeptime2 != None:
# print(sleeptime1, sleeptime2)
await asyncio.sleep(min(sleeptime1, sleeptime2))
elif sleeptime1 == None and sleeptime2 == None:
await asyncio.sleep(60)
elif sleeptime1 != None:
# print(sleeptime1)
await asyncio.sleep(sleeptime1)
else:
# print(sleeptime2)
await asyncio.sleep(sleeptime2)
'''