From 171fdf1fbcd354bd3f8c8195ef6ce200eaeaec1b Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 18 Jan 2025 23:25:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E6=81=AF=E9=93=BE=E6=97=A0?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E6=97=B6=E4=BB=8D=E7=84=B6=E6=8F=92=E5=85=A5?= =?UTF-8?q?=E4=BA=86@=E5=92=8C=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/pipeline/result_decorate/stage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/astrbot/core/pipeline/result_decorate/stage.py b/astrbot/core/pipeline/result_decorate/stage.py index f50a858b8..6580318dd 100644 --- a/astrbot/core/pipeline/result_decorate/stage.py +++ b/astrbot/core/pipeline/result_decorate/stage.py @@ -52,9 +52,9 @@ class ResultDecorateStage: logger.warning("文本转图片耗时超过了 3 秒,如果觉得很慢可以使用 /t2i 关闭文本转图片模式。") if url: result.chain = [Image.fromURL(url)] - - if self.reply_with_mention and event.get_message_type() != MessageType.FRIEND_MESSAGE: - result.chain.insert(0, At(qq=event.get_sender_id())) - - if self.reply_with_quote: - result.chain.insert(0, Reply(id=event.message_obj.message_id)) \ No newline at end of file + + if self.reply_with_mention and event.get_message_type() != MessageType.FRIEND_MESSAGE: + result.chain.insert(0, At(qq=event.get_sender_id())) + + if self.reply_with_quote: + result.chain.insert(0, Reply(id=event.message_obj.message_id)) \ No newline at end of file