Update bot.py

pull/289/head
Ealvn 2025-03-12 14:57:29 +01:00 committed by GitHub
parent d2bbf27729
commit 02086fa41d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ class ChatBot:
await relationship_manager.update_relationship_value(chat_stream=chat, relationship_value=0.5) await relationship_manager.update_relationship_value(chat_stream=chat, relationship_value=0.5)
await message.process() await message.process()
# 忽略图片处理
if message.is_ignore:
return
# 过滤词 # 过滤词
for word in global_config.ban_words: for word in global_config.ban_words:
if word in message.processed_plain_text: if word in message.processed_plain_text: