适配动态模式

This commit is contained in:
meng_xi_pan
2025-04-09 16:50:51 +08:00
parent e964558d23
commit 1ca2b89f82
2 changed files with 44 additions and 66 deletions

View File

@@ -16,7 +16,7 @@ class ClassicalWillingManager(BaseWillingManager):
self.chat_reply_willing[chat_id] = max(0, self.chat_reply_willing[chat_id] * 0.9)
async def async_task_starter(self):
if self._decay_task is None or self._decay_task.done():
if self._decay_task is None:
self._decay_task = asyncio.create_task(self._decay_reply_willing())
async def get_reply_probability(self, message_id):