mirror of https://github.com/Mai-with-u/MaiBot.git
fix filter
parent
0964676bfb
commit
a2bbbf263c
|
|
@ -251,6 +251,9 @@ class ChatBot:
|
||||||
# return
|
# return
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# 处理消息内容,生成纯文本
|
||||||
|
await message.process()
|
||||||
|
|
||||||
# 过滤检查
|
# 过滤检查
|
||||||
if _check_ban_words(
|
if _check_ban_words(
|
||||||
message.processed_plain_text,
|
message.processed_plain_text,
|
||||||
|
|
@ -273,9 +276,6 @@ class ChatBot:
|
||||||
|
|
||||||
message.update_chat_stream(chat)
|
message.update_chat_stream(chat)
|
||||||
|
|
||||||
# 处理消息内容,生成纯文本
|
|
||||||
await message.process()
|
|
||||||
|
|
||||||
# if await self.check_ban_content(message):
|
# if await self.check_ban_content(message):
|
||||||
# logger.warning(f"检测到消息中含有违法,色情,暴力,反动,敏感内容,消息内容:{message.processed_plain_text},发送者:{message.message_info.user_info.user_nickname}")
|
# logger.warning(f"检测到消息中含有违法,色情,暴力,反动,敏感内容,消息内容:{message.processed_plain_text},发送者:{message.message_info.user_info.user_nickname}")
|
||||||
# return
|
# return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue