project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.66k stars 343 forks source link

botList,,返回指定操作不支持,文件中指令貌似被删除! #609

Closed Novices666 closed 2 years ago

Novices666 commented 2 years ago

data":{"code":6,"msg":"指定操作不支持"}

Novices666 commented 2 years ago

WS的操作

ryoii commented 2 years ago

提供一下当时发送的请求,或者打开 debug 模式提供一下日志。我看到代码里是有的

Novices666 commented 2 years ago

{"syncId":1002,"command":"botList"} 这是请求

Numendacil commented 2 years ago

{"syncId":1002,"command":"botList"} 这是请求

2.5.2版本的ws adaptor貌似是没有这个功能的,是不是没有更新到2.6

 websocat 'ws://localhost:8080/event?verifyKey=xxx&qq=xxx' 
{"syncId":"","data":{"code":0,"session":"35ag4XtG"}}
{"syncId":1002,"command":"botList"}
{"syncId":"1002","data":{"code":0,"msg":"","data":[xxx]}}
ryoii commented 2 years ago

本来就是 2.6.0 新增的功能