Update message.py
This commit is contained in:
parent
3c85929705
commit
91685c5957
1 changed files with 6 additions and 3 deletions
|
@ -380,11 +380,14 @@ class FetchTarget(FT):
|
|||
else:
|
||||
else_.append(post_(fetch))
|
||||
|
||||
if in_whitelist:
|
||||
for x in in_whitelist:
|
||||
await x
|
||||
async def post_in_whitelist(lst):
|
||||
for l in lst:
|
||||
await l
|
||||
await asyncio.sleep(random.randint(1, 5))
|
||||
|
||||
if in_whitelist:
|
||||
asyncio.create_task(post_in_whitelist(in_whitelist))
|
||||
|
||||
async def post_not_in_whitelist(lst):
|
||||
for f in lst:
|
||||
await f
|
||||
|
|
Reference in a new issue