Explorar o código

fix: exit group optimize

zhayujie %!s(int64=2) %!d(string=hai) anos
pai
achega
40fd545b2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/hello/hello.py

+ 1 - 1
plugins/hello/hello.py

@@ -49,7 +49,7 @@ class Hello(Plugin):
             return
         
         if e_context["context"].type == ContextType.EXIT_GROUP:
-            if conf().get("group_chat_exit_group", []) == True:
+            if conf().get("group_chat_exit_group"):
                 e_context["context"].type = ContextType.TEXT
                 msg: ChatMessage = e_context["context"]["msg"]
                 e_context["context"].content = f'请你随机使用一种风格跟其他群用户说他违反规则"{msg.actual_user_nickname}"退出群聊。'