keyword fix a bug

This commit is contained in:
xtaodada 2021-06-19 15:22:01 +08:00
parent e38b747347
commit 38fc0ba479
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

View File

@ -975,7 +975,7 @@ async def setdata(context):
@listener(incoming=True, outgoing=True, ignore_edited=True)
async def auto_reply(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:
return
read_context[(context.chat_id, context.id)] = True

View File

@ -382,7 +382,7 @@
},
{
"name": "keyword",
"version": "2.633",
"version": "2.634",
"section": "chat",
"maintainer": "c3b2a,xtaodada",
"size": "44.1 kb",