mirai-api-http icon indicating copy to clipboard operation
mirai-api-http copied to clipboard

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

Open Novices666 opened this issue 2 years ago • 5 comments

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

Novices666 avatar Aug 13 '22 09:08 Novices666

WS的操作

Novices666 avatar Aug 13 '22 09:08 Novices666

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

ryoii avatar Aug 13 '22 16:08 ryoii

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

Novices666 avatar Aug 16 '22 02:08 Novices666

{"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]}}

Numendacil avatar Aug 16 '22 10:08 Numendacil

本来就是 2.6.0 新增的功能

ryoii avatar Aug 16 '22 11:08 ryoii