Merge pull request #736 from na10xi27da/dev

mxp模式的小修改
pull/734/head
UnCLAS-Prommer 2025-04-12 23:55:03 +08:00 committed by GitHub
commit 564643800e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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):
"""获取回复概率"""