Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
This commit is contained in:
@@ -142,15 +142,13 @@ class ExpressionSelector:
|
||||
"style"
|
||||
):
|
||||
current_count = expr.get("count", 1)
|
||||
|
||||
|
||||
# 简单加0.1,但限制最高为5
|
||||
new_count = min(current_count + increment, 5.0)
|
||||
expr["count"] = new_count
|
||||
expr["last_active_time"] = time.time()
|
||||
|
||||
logger.info(
|
||||
f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}"
|
||||
)
|
||||
logger.info(f"表达方式激活: 原count={current_count:.2f}, 增量={increment}, 新count={new_count:.2f}")
|
||||
break
|
||||
|
||||
# 保存更新后的文件
|
||||
|
||||
Reference in New Issue
Block a user