给 help 添加 reply
This commit is contained in:
parent
73d5220835
commit
f3eb236b28
@ -136,7 +136,8 @@ class SioDecorator:
|
|||||||
try:
|
try:
|
||||||
await func(sqt)
|
await func(sqt)
|
||||||
except PrintMessage as e:
|
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())
|
await self.app.ctx.sio.emit('sendMessage', msg.to_json())
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user