feat: 为当前回复添加format_accept的约束

This commit is contained in:
tcmofashi
2025-04-17 10:48:07 +08:00
parent ae2713f7b3
commit 92ac20aaf5
2 changed files with 30 additions and 22 deletions

View File

@@ -313,6 +313,10 @@ class MessageSending(MessageProcessBase):
def set_reply(self, reply: Optional["MessageRecv"] = None) -> None:
"""设置回复消息"""
if (
self.message_info.format_info.accept_format is not None
and "reply" in self.message_info.format_info.accept_format
):
if reply:
self.reply = reply
if self.reply:

View File

@@ -365,6 +365,10 @@ class ThinkFlowChat:
info_catcher.done_catch()
# 处理表情包
if (
message.message_info.format_info.accept_format is not None
and "emoji" in message.message_info.format_info.accept_format
):
try:
with Timer("处理表情包", timing_results):
if global_config.emoji_chance == 1: