kanrichan / floatbot Goto Github PK
View Code? Open in Web Editor NEW:sparkles: OneBot(原CQHTTP) 多平台的实现
:sparkles: OneBot(原CQHTTP) 多平台的实现
获取好友列表 不完整
用易语言调用的,用的正向Websocket
返回{"status":"ok","retcode":0,"data":[{"group_id":0,"group_name":"unknow","member_count":0,"max_member_count":0}],"echo":123}
我自己给机器人私聊命令就可以执行
在群聊里不行
ws啥的都显示打开正常的
加载插件时提示XQ_Creat函数未公开
看了下文档好像获取图片只有下载到本地的路径,没有直链吗
使用反向ws连接yobot时发现日志报错,yobot的返回信息调用了handle_quick_operation这个API,但是插件抛出了no such api错误:
BOT <- ws://172.20.0.1:8080/ws/ API: .handle_quick_operation Params: {"action": ".handle_quick_operation_async", "params": {"context": {"anonymous": null, "font": 0, "group_id": *, "message": "version", "message_id": 1262, "message_type": "group", "post_type": "message", "raw_message": "version", "self_id": *, "sender": {"age": 0, "area": "", "card": "unknown", "level": "", "nickname": "unknown", "role": "admin", "sex": "unknown", "title": "unknown", "user_id": *}, "sub_type": "normal", "time": 1607966336, "user_id": *}, "operation": {"reply": "yobot[v3.6.7]\u63d2\u4ef6\u7248", "at_sender": false}}, "echo": {"seq": 48417}}
ws://172.20.0.1:8080/ws/ <- {"status":"failed","retcode":100,"data":"no such api","echo":{"seq":48417}}
另外测试过程中发现使用CQ码发送网络图片时动作不正常,获得的信息是一串pic代码而非图片。
sender字段中的发送者信息也无法正常获取(只提供了unknown)
后台发送信息:
BOT <- ws://172.20.0.1:8080/ws/ API: send_msg Params: {"action": "send_msg", "params": {"font": 0, "message": "[CQ:image,file=https://i.pixiv.cat/img-original/img/2018/12/07/20/08/36/72007386_p15.jpg]", "message_id": 29101, "message_type": "private", "post_type": "message", "raw_message": "\u6765\u4efd\u8272\u56fe", "self_id": *, "sender": {"age": "unknown", "nickname": "unknown", "sex": "unknown", "user_id": *, "card": "unknown"}, "sub_type": "friend", "time": 1607967326, "user_id": *}, "echo": {"seq": 48470}}
实际收到的信息:
チノ 02:35:29
[pic={1663652635-3023475402-0332D85CDEE105B506A388BA5852A464}.jpg]
可以增加一个添加好友的接口吗?
目前不知道为什么lifecycle传入的变量名是self_ID而不是nonebot事件本身的self_id,会导致整个程序报错
log大概长这样:
Failed to handle event. Raw: {'meta_event_type': 'lifecycle', 'post_type': 'meta_event', 'self_ID': (机器人qq号), 'sub_type': 'connect', 'time': 1617883945}
(跳过一堆东西)
pydantic.error_wrappers.ValidationError: 1 validation error for Event
self_id
field required (type=value_error.missing)
我自己搞了半天发现大概是因为server\websocket_server.go里面的ServeHTTP函数输入的参数名不对 但因为不知道编译用的gcc版本(加上我又很菜)无法帮忙debug
希望可以看看这个问题(乖巧)
请求 : http://127.0.0.1:5700/get_group_member_list
参数 : group_id : <群号>
方式 : get,post
返回值: {"data":null,"echo":null,"retcode":0,"status":"ok"}
获取好友列表失败!!
event, _ := hjson.Marshal(handshake)
if c.Status == 1 {
c.Heart <- event
}
Json的null值都是字符串的"null",可以修改一下吗
无法获取自己创建的群,以及拥有管理权限的群
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.