From 1963ff273fb774d92086a9bced662847a02d959c Mon Sep 17 00:00:00 2001 From: lanvent Date: Wed, 14 Jun 2023 13:38:34 +0800 Subject: [PATCH] chore(hello): change plugin logic --- plugins/hello/hello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hello/hello.py b/plugins/hello/hello.py index fc8fe70..cd19384 100644 --- a/plugins/hello/hello.py +++ b/plugins/hello/hello.py @@ -34,14 +34,14 @@ class Hello(Plugin): e_context["context"].type = ContextType.TEXT msg: ChatMessage = e_context["context"]["msg"] e_context["context"].content = f'请你随机使用一种风格说一句问候语来欢迎新用户"{msg.actual_user_nickname}"加入群聊。' - e_context.action = EventAction.CONTINUE # 事件继续,交付给下个插件或默认逻辑 + e_context.action = EventAction.BREAK # 事件结束,进入默认处理逻辑 return if e_context["context"].type == ContextType.PATPAT: e_context["context"].type = ContextType.TEXT msg: ChatMessage = e_context["context"]["msg"] e_context["context"].content = f"请你随机使用一种风格介绍你自己,并告诉用户输入#help可以查看帮助信息。" - e_context.action = EventAction.CONTINUE # 事件继续,交付给下个插件或默认逻辑 + e_context.action = EventAction.BREAK # 事件结束,进入默认处理逻辑 return content = e_context["context"].content