积分消费提醒

This commit is contained in:
liuwei
2025-04-09 16:39:13 +08:00
parent 8ce5f8a55d
commit edee17849f

View File

@@ -139,9 +139,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature =
if wcf:
wcf.send_text(
f"❌ 积分不足,无法使用 {plugin_name} 功能\n"
f"当前积分: {user_points['total_points']}\n"
f"需要积分: {points}\n"
f"还差 {points - user_points['total_points']} 积分",
f": {user_points['total_points']} | 需: {points} |差: {points - user_points['total_points']} ",
(roomid if roomid else sender), sender
)
logger.info(f"用户 {sender} 积分不足,无法使用功能")