mirror of https://github.com/Mai-with-u/MaiBot.git
fix
parent
204744cd71
commit
84495f8329
|
|
@ -78,7 +78,7 @@ class ChatBot:
|
|||
|
||||
# 正则表达式过滤
|
||||
for pattern in global_config.ban_msgs_regex:
|
||||
if re.search(pattern, message.detailed_plain_text):
|
||||
if re.search(pattern, message.raw_message):
|
||||
logger.info(
|
||||
f"[{message.group_name}]{message.user_nickname}:{message.raw_message}")
|
||||
logger.info(f"[正则表达式过滤]消息匹配到{pattern},filtered")
|
||||
|
|
|
|||
Loading…
Reference in New Issue