From 38fc0ba479b9abc728d608e6be5b80abd9ea1b98 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 19 Jun 2021 15:22:01 +0800 Subject: [PATCH] keyword fix a bug --- keyword.py | 2 +- list.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keyword.py b/keyword.py index b19c716..7f57057 100644 --- a/keyword.py +++ b/keyword.py @@ -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 diff --git a/list.json b/list.json index 851479b..8f1144d 100644 --- a/list.json +++ b/list.json @@ -382,7 +382,7 @@ }, { "name": "keyword", - "version": "2.633", + "version": "2.634", "section": "chat", "maintainer": "c3b2a,xtaodada", "size": "44.1 kb",