From de4506b1d399475fb2aa3d6087436201feb55e89 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sat, 3 Aug 2024 19:56:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dowmd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dowmd.py b/dowmd.py index d227abe..5b2ff63 100644 --- a/dowmd.py +++ b/dowmd.py @@ -31,13 +31,14 @@ class dow_markdown(Plugin): def on_handle_context(self,e_context:EventContext): try: send_msg = e_context["context"] - logger.info(f"[dow_markdown] on_handle_context sendMsg={send_msg["content"]}") + text = send_msg["content"] + logger.info(f"[dow_markdown] on_handle_context sendMsg={text}") if send_msg["type"] == ReplyType.TEXT: if any(word in send_msg["content"] for word in ["画"]): receiver = send_msg.get("receiver") itchat.send("我正在绘画中,可能需要多等待一会,请稍后...",toUserName=receiver) except Exception as e: - logger.warn(f"[dow_markdown] on_handle_context failed, content={send_msg["content"]}, error={e}") + logger.warn(f"[dow_markdown] on_handle_context failed, content={text}, error={e}") finally: e_context.action = EventAction.CONTINUE def on_decorate_reply(self, e_context: EventContext):