Parcourir la source

chore(hello): change plugin logic

lanvent il y a 2 ans
Parent
commit
1963ff273f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      plugins/hello/hello.py

+ 2 - 2
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