调整限流策略
This commit is contained in:
@@ -185,7 +185,7 @@ class GuessSongPlugin(MessagePluginInterface):
|
||||
return command in self._commands
|
||||
|
||||
@plugin_stats_decorator(plugin_name="猜歌名游戏")
|
||||
@group_feature_rate_limit(max_per_minute=1, feature_key=FEATURE_KEY)
|
||||
@group_feature_rate_limit(max_per_minute=5, feature_key=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