From 478238f4b87a539f6c0bc446642ab32b40be8519 Mon Sep 17 00:00:00 2001 From: biupiaa <32515374+ttlvip@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=A3=E7=99=96=E5=92=8C=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E4=B9=8B=E9=97=B4=E6=B7=BB=E5=8A=A0=E7=A9=BA=E6=A0=BC=EF=BC=8C?= =?UTF-8?q?=20=E9=98=B2=E6=AD=A2=E9=93=BE=E6=8E=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/builtin_plugins/catchphrase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/catchphrase.py b/zhenxun/builtin_plugins/catchphrase.py index 23736b5b..22f2364d 100644 --- a/zhenxun/builtin_plugins/catchphrase.py +++ b/zhenxun/builtin_plugins/catchphrase.py @@ -21,7 +21,7 @@ async def handle_api_call(bot: Bot, api: str, data: dict[str, Any]): if catchphrase and (message := data.get("message")): for i in range(len(message) - 1, -1, -1): if message[i].type == "text": - message[i].data["text"] += catchphrase + message[i].data["text"] = f"{message[i].data['text']} {catchphrase}" logger.debug( f"文本: {message[i].data['text']} 添加口癖: {catchphrase}" )