From 7db42532649fc764f82b98b22cfed9e1409e0fc5 Mon Sep 17 00:00:00 2001 From: Saboteur7 <138805485+Saboteur7@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:47:56 +0800 Subject: [PATCH] Update chat_channel.py --- channel/chat_channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channel/chat_channel.py b/channel/chat_channel.py index 877f5cd..6e2a45c 100644 --- a/channel/chat_channel.py +++ b/channel/chat_channel.py @@ -99,8 +99,8 @@ class ChatChannel(Channel): nick_name_black_list = conf().get("nick_name_black_list", []) if context.get("isgroup", False): # 群聊 # 校验关键字 - match_prefix = check_prefix(content, conf().get("group_chat_prefix",[""])) - match_contain = check_contain(content, conf().get("group_chat_keyword",[""])) + match_prefix = check_prefix(content, conf().get("group_chat_prefix")) + match_contain = check_contain(content, conf().get("group_chat_keyword")) flag = False if context["msg"].to_user_id != context["msg"].actual_user_id: if match_prefix is not None or match_contain is not None: