修正了jrrp发送的错误发送

This commit is contained in:
SharwOrange橙夜 2024-01-09 19:41:40 +08:00
parent b184661da0
commit b8ba1c561a

View File

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