From ab72ef855dcb2bb8d651cb8e8e7c7f9ea6623bef Mon Sep 17 00:00:00 2001 From: corolin Date: Fri, 21 Mar 2025 01:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=88=B0=E6=8B=8D=E4=B8=80=E6=8B=8D=E6=B6=88=E6=81=AF=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E7=94=B1=E4=BA=8E=E6=9F=90=E4=BA=9B=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E5=88=B0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=AF=BC=E8=87=B4=E5=BC=82=E5=B8=B8=EF=BC=8C?= =?UTF-8?q?=E4=B8=94=E5=BD=B1=E5=93=8D=E5=88=B0=E6=AD=A3=E5=B8=B8=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ac466fbd366a98ba35b3c94880a67faaa95f781a) --- src/plugins/chat/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chat/bot.py b/src/plugins/chat/bot.py index 38450f903..aebe1e7db 100644 --- a/src/plugins/chat/bot.py +++ b/src/plugins/chat/bot.py @@ -296,7 +296,7 @@ class ChatBot: return raw_message = f"[戳了戳]{global_config.BOT_NICKNAME}" # 默认类型 - if info := event.raw_info: + if info := event.model_extra["raw_info"]: poke_type = info[2].get("txt", "戳了戳") # 戳戳类型,例如“拍一拍”、“揉一揉”、“捏一捏” custom_poke_message = info[4].get("txt", "") # 自定义戳戳消息,若不存在会为空字符串 raw_message = f"[{poke_type}]{global_config.BOT_NICKNAME}{custom_poke_message}"