运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install rocom-merchant-inventory
镜像加速npx clawhub@latest install rocom-merchant-inventory --registry https://cn.longxiaskill.com 镜像可用
本土化适配说明
远行商人库存查询 安装说明: 安装命令:["openclaw skills install rocom-merchant-inventory"] 该技能用于支付宝相关操作,可能需要相应的平台账号或API密钥
技能文档
远行商人库存查询 查询当前远行商人库存,并自动过滤掉非当前轮次商品。
使用前提 需要 Python 3 需要 Python 包:requests 需要环境变量 ROCOM_API_KEY,或使用参数 --api-key API key 来源 请从 https://github.com/Entropy-Increase-Team/ 相关项目或说明中获取 不要把 API key 写进公开仓库或公开聊天
远程接口 本 skill 会请求: https://wegame.shallow.ink/api/v1/games/rocom/merchant/info?refresh=true
用法 ROCOM_API_KEY=你的key python3 skills/rocom-merchant-inventory/scripts/fetch_inventory.py python3 skills/rocom-merchant-inventory/scripts/fetch_inventory.py --api-key 你的key --format json --pretty
输出格式 默认输出简洁文本 --format json 输出 JSON