Update willing_manager.py
防止概率大于100%
This commit is contained in:
@@ -61,6 +61,7 @@ class WillingManager:
|
|||||||
# if is_mentioned_bot and user_id == int(1026294844):
|
# if is_mentioned_bot and user_id == int(1026294844):
|
||||||
# reply_probability = 1
|
# reply_probability = 1
|
||||||
|
|
||||||
|
reply_probability = min(reply_probability, 1)
|
||||||
return reply_probability
|
return reply_probability
|
||||||
|
|
||||||
def change_reply_willing_sent(self, group_id: int):
|
def change_reply_willing_sent(self, group_id: int):
|
||||||
|
|||||||
Reference in New Issue
Block a user