给 help 添加 reply

This commit is contained in:
shenjack 2023-12-22 00:24:30 +08:00
parent 73d5220835
commit f3eb236b28
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -136,7 +136,8 @@ class SioDecorator:
try:
await func(sqt)
except PrintMessage as e:
msg = Message(content=str(e), room_id=room_id)
reply = ReplyMessage(id=message_id)
msg = Message(content=str(e), room_id=room_id, reply_to=reply)
await self.app.ctx.sio.emit('sendMessage', msg.to_json())