修复回复消息没有正常发送的问题
set_reply不存在返回值,导致回复消息发送为空 单独set_reply后发送msg本体即可
This commit is contained in:
@@ -180,7 +180,8 @@ class MessageManager:
|
|||||||
and message_earliest.update_thinking_time() > 30
|
and message_earliest.update_thinking_time() > 30
|
||||||
and not message_earliest.is_private_message() # 避免在私聊时插入reply
|
and not message_earliest.is_private_message() # 避免在私聊时插入reply
|
||||||
):
|
):
|
||||||
await message_sender.send_message(message_earliest.set_reply())
|
message_earliest.set_reply()
|
||||||
|
await message_sender.send_message(message_earliest)
|
||||||
else:
|
else:
|
||||||
await message_sender.send_message(message_earliest)
|
await message_sender.send_message(message_earliest)
|
||||||
await message_earliest.process()
|
await message_earliest.process()
|
||||||
@@ -208,6 +209,7 @@ class MessageManager:
|
|||||||
and msg.update_thinking_time() > 30
|
and msg.update_thinking_time() > 30
|
||||||
and not message_earliest.is_private_message() # 避免在私聊时插入reply
|
and not message_earliest.is_private_message() # 避免在私聊时插入reply
|
||||||
):
|
):
|
||||||
|
msg.set_reply()
|
||||||
await message_sender.send_message(msg.set_reply())
|
await message_sender.send_message(msg.set_reply())
|
||||||
else:
|
else:
|
||||||
await message_sender.send_message(msg)
|
await message_sender.send_message(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user