From ba35069dc84ae2d24457cf25a07806ff535b23a7 Mon Sep 17 00:00:00 2001 From: XBC_D2O Date: Wed, 12 Mar 2025 23:29:33 +0800 Subject: [PATCH] 1 --- src/plugins/chat/willing_manager.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/plugins/chat/willing_manager.py b/src/plugins/chat/willing_manager.py index 3a33f928..e777155c 100644 --- a/src/plugins/chat/willing_manager.py +++ b/src/plugins/chat/willing_manager.py @@ -19,8 +19,6 @@ class WillingManager: await asyncio.sleep(5) for chat_id in self.chat_reply_willing: self.chat_reply_willing[chat_id] = max(0, self.chat_reply_willing[chat_id] * 0.6) - for chat_id in self.chat_reply_willing: - self.chat_reply_willing[chat_id] = max(0, self.chat_reply_willing[chat_id] * 0.6) def get_willing(self,chat_stream:ChatStream) -> float: """获取指定聊天流的回复意愿""" @@ -31,9 +29,6 @@ class WillingManager: def set_willing(self, chat_id: str, willing: float): """设置指定聊天流的回复意愿""" self.chat_reply_willing[chat_id] = willing - def set_willing(self, chat_id: str, willing: float): - """设置指定聊天流的回复意愿""" - self.chat_reply_willing[chat_id] = willing async def change_reply_willing_received(self, chat_stream:ChatStream,