From 2c544c402a7d6d9e6bcf281382c055d6ac5639f7 Mon Sep 17 00:00:00 2001 From: meng_xi_pan Date: Sat, 12 Apr 2025 23:44:02 +0800 Subject: [PATCH] =?UTF-8?q?mxp=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=B0=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/willing/mode_mxp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/willing/mode_mxp.py b/src/plugins/willing/mode_mxp.py index b17e76702..25627d707 100644 --- a/src/plugins/willing/mode_mxp.py +++ b/src/plugins/willing/mode_mxp.py @@ -76,6 +76,9 @@ class MxpWillingManager(BaseWillingManager): if w_info.chat_id in self.last_response_person and self.last_response_person[w_info.chat_id][0] == w_info.person_id: self.chat_person_reply_willing[w_info.chat_id][w_info.person_id] +=\ self.single_chat_gain * (2 * self.last_response_person[w_info.chat_id][1] + 1) + now_chat_new_person = self.last_response_person.get(w_info.chat_id, ["", 0]) + if now_chat_new_person[0] != w_info.person_id: + self.last_response_person[w_info.chat_id] = [w_info.person_id, 0] async def get_reply_probability(self, message_id: str): """获取回复概率"""