From 6200a18b822aeb11f2630ff9cb6a480066620faa Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sun, 15 Oct 2023 01:25:50 +0800 Subject: [PATCH] rua --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index cd28bbe..5675e30 100644 --- a/connect.py +++ b/connect.py @@ -208,7 +208,7 @@ async def add_message(data: Dict[str, Any]): reply_to=reply, room_id=room_id) - await asyncio.sleep(0.5) + await asyncio.sleep(random.random() * 2) await sio.emit('sendMessage', message.to_json()) elif data['message']['content'] == 'jrrp': randomer = random.Random(f'{sender_id}-{data["message"]["date"]}-jrrp')