From 1a019348ca26f8e618260f1f5b92ff6ae2d7f9da Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sat, 3 Aug 2024 14:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dowmd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dowmd.py b/dowmd.py index ce6b424..4f5c22b 100644 --- a/dowmd.py +++ b/dowmd.py @@ -27,16 +27,16 @@ class dow_markdown(Plugin): except Exception as e: logger.warn("[dow_markdown] init failed, ignore.") raise e - def on_handle_context(self,e_content:EventContext): + def on_handle_context(self,e_context:EventContext): try: - send_msg = e_content["context"] + send_msg = e_context["context"] 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) - e_content.action = EventAction.CONTINUE + e_context.action = EventAction.CONTINUE finally: - e_content.action = EventAction.CONTINUE + e_context.action = EventAction.CONTINUE def on_decorate_reply(self, e_context: EventContext): if e_context["reply"].type != ReplyType.TEXT: return