From b8ba1c561a9b7fc3b8b33cc271711b8e0ac23230 Mon Sep 17 00:00:00 2001 From: SharwOrange Date: Tue, 9 Jan 2024 19:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86jrrp=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=9A=84=E9=94=99=E8=AF=AF=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect.py b/connect.py index 51683e6..ecbc076 100644 --- a/connect.py +++ b/connect.py @@ -292,8 +292,8 @@ async def add_message(data: Dict[str, Any]): message = Message(content=f'{sender_name} 今日人品值为 {result}', reply_to=reply, room_id=room_id) - await asyncio.sleep(0.5) - await sio.emit('sendMessage', message.to_json()) + await asyncio.sleep(0.5) + await sio.emit('sendMessage', message.to_json()) # 如果只包括一个或多个 6 # elif data['message']['content'].replace(' ', '') in ('6', '666', '六', '3+3', '5+1', '4+2', '2+4', '1+5'): # reply = ReplyMessage(id=data['message']['_id'])