调整积分
This commit is contained in:
@@ -116,7 +116,7 @@ class VideoPlugin(MessagePluginInterface):
|
||||
return command in self._commands
|
||||
|
||||
@plugin_stats_decorator(plugin_name="视频插件")
|
||||
@plugin_points_cost(5, "视频插件消耗积分", FEATURE_KEY)
|
||||
@plugin_points_cost(8, "视频插件消耗积分", FEATURE_KEY)
|
||||
@group_feature_rate_limit(max_per_minute=3, feature_key=FEATURE_KEY)
|
||||
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||
"""处理消息"""
|
||||
|
||||
@@ -102,7 +102,7 @@ class WeatherPlugin(MessagePluginInterface):
|
||||
return command in self._commands
|
||||
|
||||
@plugin_stats_decorator(plugin_name="天气查询")
|
||||
@plugin_points_cost(1, "天气查询消耗积分", FEATURE_KEY)
|
||||
@plugin_points_cost(10, "天气查询消耗积分", FEATURE_KEY)
|
||||
async def process_message(self, message: Dict[str, Any]) -> Tuple[bool, Optional[str]]:
|
||||
"""处理消息"""
|
||||
content = str(message.get("content", "")).strip()
|
||||
|
||||
Reference in New Issue
Block a user