修改回复功能

This commit is contained in:
SharwOrange橙夜 2023-12-30 19:55:48 +08:00
parent 6a3a31ab18
commit 51011ec401

View File

@ -280,7 +280,6 @@ async def add_message(data: Dict[str, Any]):
randomer = random.Random(f'{sender_id}-{data["message"]["date"]}-jrrp-v2')
result = randomer.randint(0, 50) + randomer.randint(0, 50)
print(f'{sender_name} 今日人品值为 {result}')
reply = ReplyMessage(id=data['message']['_id'])
message = Message(content=f'{sender_name} 今日人品值为 {result}',
reply_to=reply,
room_id=room_id)