标准化“被@”识别与平台解耦:更改 maim_message 以适配tg等后续平台的视频

This commit is contained in:
exynos
2025-10-13 16:00:15 +08:00
parent 47816e305e
commit 817154a72b
7 changed files with 134 additions and 99 deletions

View File

@@ -221,6 +221,8 @@ class ChatBot:
# 处理消息内容,生成纯文本
await message.process()
# 平台层的 @ 检测由底层 is_mentioned_bot_in_message 统一处理;此处不做用户名硬编码匹配
# 过滤检查
if _check_ban_words(
message.processed_plain_text,