Skip to content

Commit

Permalink
fix: exit group optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Dec 6, 2023
1 parent 95fb073 commit 40fd545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/hello/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def on_handle_context(self, e_context: EventContext):
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}"退出群聊。'
Expand Down

0 comments on commit 40fd545

Please sign in to comment.