fix filter

pull/1264/head
UnCLAS-Prommer 2025-09-24 19:52:55 +08:00
parent 0964676bfb
commit a2bbbf263c
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -251,6 +251,9 @@ class ChatBot:
# return
pass
# 处理消息内容,生成纯文本
await message.process()
# 过滤检查
if _check_ban_words(
message.processed_plain_text,
@ -273,9 +276,6 @@ class ChatBot:
message.update_chat_stream(chat)
# 处理消息内容,生成纯文本
await message.process()
# if await self.check_ban_content(message):
# logger.warning(f"检测到消息中含有违法,色情,暴力,反动,敏感内容,消息内容:{message.processed_plain_text},发送者:{message.message_info.user_info.user_nickname}")
# return