mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 11:26:47 +00:00
keyword fix a bug
This commit is contained in:
parent
e38b747347
commit
38fc0ba479
@ -975,7 +975,7 @@ async def setdata(context):
|
|||||||
@listener(incoming=True, outgoing=True, ignore_edited=True)
|
@listener(incoming=True, outgoing=True, ignore_edited=True)
|
||||||
async def auto_reply(context):
|
async def auto_reply(context):
|
||||||
global read_context
|
global read_context
|
||||||
asyncio.sleep(random.randint(0, 100) / 1000)
|
await asyncio.sleep(random.randint(0, 100) / 1000)
|
||||||
if (context.chat_id, context.id) in read_context:
|
if (context.chat_id, context.id) in read_context:
|
||||||
return
|
return
|
||||||
read_context[(context.chat_id, context.id)] = True
|
read_context[(context.chat_id, context.id)] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user