From 40fd545b2c4777004235388bfc3c68904e3de937 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 6 Dec 2023 10:51:47 +0800 Subject: [PATCH] fix: exit group optimize --- plugins/hello/hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hello/hello.py b/plugins/hello/hello.py index 76772af..35c181f 100644 --- a/plugins/hello/hello.py +++ b/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}"退出群聊。'