feat: 为当前回复添加format_accept的约束
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user