Install
openclaw skills install dota2-xg-next-game查询 Xtreme Gaming (XG) 战队的下一场比赛信息。通过 Liquipedia API 获取精准、实时的赛程数据。当用户询问 XG 何时有比赛或下一场对手是谁时调用。
openclaw skills install dota2-xg-next-game这个技能通过 Liquipedia MediaWiki API 接口直接获取 Xtreme Gaming (XG) 的赛程数据,完美绕过前端页面的反爬限制(403 Forbidden)和代理环境(TUN 模式)下的 SSRF 拦截。
RunCommand 执行以下 curl 命令(必须带 User-Agent):
curl -H "User-Agent: Trae/1.0 (OpenClaw Skill)" -s "https://liquipedia.net/dota2/api.php?action=parse&page=Xtreme_Gaming&format=json&prop=text|sections"sections 列表,定位到 anchor 为 Upcoming_Matches 的 index(通常在末尾)。index 提取对应的 text 内容。Upcoming_Matches 节点,说明该战队目前没有已公开的未来赛程。