mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-08 12:54:51 +00:00
One task per user
This commit is contained in:
parent
f8bcfe898d
commit
2b46d06a48
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ async def genss(client, message):
|
||||||
if not DL_TASK.get(message.from_user.id):
|
if not DL_TASK.get(message.from_user.id):
|
||||||
DL_TASK[message.from_user.id] = True
|
DL_TASK[message.from_user.id] = True
|
||||||
|
|
||||||
if DL_TASK.get(message.from_user.id):
|
if DL_TASK.get(message.from_user.id) == True:
|
||||||
return await process.edit("Sorry to avoid flood and error, bot only process one task at a time.")
|
return await process.edit("Sorry to avoid flood and error, bot only process one task at a time.")
|
||||||
c_time = time.time()
|
c_time = time.time()
|
||||||
the_real_download_location = await replied.download(
|
the_real_download_location = await replied.download(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue