fix: 小修

This commit is contained in:
tcmofashi
2025-03-11 16:32:35 +08:00
parent 1c9b0ccbe3
commit 5760412382
2 changed files with 2 additions and 7 deletions

View File

@@ -345,7 +345,7 @@ class ImageManager:
logger.error(f"保存图片文件失败: {str(e)}") logger.error(f"保存图片文件失败: {str(e)}")
# 保存描述到数据库 # 保存描述到数据库
await self._save_description_to_db(image_hash, description, 'image') self._save_description_to_db(image_hash, description, 'image')
return f"[图片:{description}]" return f"[图片:{description}]"
except Exception as e: except Exception as e:

View File

@@ -79,10 +79,6 @@ class WillingManager:
# 检查群组权限(如果是群聊) # 检查群组权限(如果是群聊)
if chat_stream.group_info: if chat_stream.group_info:
if chat_stream.group_info.group_id not in config.talk_allowed_groups:
current_willing = 0
reply_probability = 0
if chat_stream.group_info.group_id in config.talk_frequency_down_groups: if chat_stream.group_info.group_id in config.talk_frequency_down_groups:
reply_probability = reply_probability / global_config.down_frequency_rate reply_probability = reply_probability / global_config.down_frequency_rate
@@ -90,7 +86,6 @@ class WillingManager:
if reply_probability < 0: if reply_probability < 0:
reply_probability = 0 reply_probability = 0
self.chat_reply_willing[chat_id] = min(current_willing, 3.0)
self.chat_reply_willing[chat_id] = min(current_willing, 3.0) self.chat_reply_willing[chat_id] = min(current_willing, 3.0)
return reply_probability return reply_probability