Browse Source

fix: exit group optimize

master
zhayujie 11 months ago
parent
commit
40fd545b2c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      plugins/hello/hello.py

+ 1
- 1
plugins/hello/hello.py View File

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


Loading…
Cancel
Save