加入了级别功能。
This commit is contained in:
@@ -111,7 +111,7 @@ class AIGenImagePlugin(MessagePluginInterface):
|
||||
return command in self._commands
|
||||
|
||||
@plugin_stats_decorator(plugin_name="AI绘图")
|
||||
@plugin_points_cost(5, "AI绘图消耗积分", FEATURE_KEY)
|
||||
@plugin_points_cost(20, "AI绘图消耗积分", FEATURE_KEY)
|
||||
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||
"""处理消息"""
|
||||
content = str(message.get("content", "")).strip()
|
||||
|
||||
@@ -13,8 +13,8 @@ command-format = """
|
||||
# 打劫功能配置
|
||||
rob-success-rate = 0.4 # 基础打劫成功率
|
||||
rob-rate-decay = 0.1 # 积分差距成功率衰减系数
|
||||
rob-min-percent = 0.1 # 打劫成功时最小获取目标积分百分比
|
||||
rob-max-percent = 0.3 # 打劫成功时最大获取目标积分百分比
|
||||
rob-penalty-percent = 0.2 # 打劫失败时的惩罚百分比(扣除自身积分的比例)
|
||||
rob-min-percent = 0.2 # 打劫成功时最小获取目标积分百分比
|
||||
rob-max-percent = 0.4 # 打劫成功时最大获取目标积分百分比
|
||||
rob-penalty-percent = 0.1 # 打劫失败时的惩罚百分比(扣除自身积分的比例)
|
||||
rob-cooldown = 300 # 打劫冷却时间(秒),默认1小时
|
||||
rob-min-points = 30 # 打劫最低积分要求(打劫者和目标都需满足)
|
||||
Reference in New Issue
Block a user