This commit is contained in:
shenjack 2023-10-15 01:25:50 +08:00
parent df616d8b53
commit 6200a18b82
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -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')