Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ 提醒 ] Bot 框架的适配情况 #76

Open
Stapxs opened this issue Nov 14, 2023 · 3 comments
Open

[ 提醒 ] Bot 框架的适配情况 #76

Stapxs opened this issue Nov 14, 2023 · 3 comments

Comments

@Stapxs
Copy link
Owner

Stapxs commented Nov 14, 2023

支持列表

此 issue 下是关于其他支持或不支持 Onebot 11 的 bot 的适配相关进度支持。(按功能完整度排序)

提醒

  • SQL2 使用反向 WebSocket 连接到 Bot,你需要为 Bot 打开反向 WebSocket 的相关功能并使用设置的端口连接。
  • SQL2 将默认加载 Napcat.OneBot 的配置文件,它兼容 gocq 的端点;如果你想要尝试连接一个不在此列表上的 bot,并且它兼容 gocq,那理论上说应该也能正常工作,如:opq-onebot、gensokyo 等。但是它们并没有经过兼容适配,如果遇到问题,欢迎提出新的 issue!

适配请求

如果你有 Bot 适配请求,请使用空白模版创建新的 issue;如果你是列表中某个 Bot 的开发者并且愿意跟进兼容性适配,您可以参考下面的端点列表考虑实现缺失的功能,OneBot11 协议端点是必须实现的功能,其他的没有也可以用;你可以在本 issue 直接反馈兼容进度。

使用到的端点

Bot 需要支持基本的 OneBot11 规范;目前使用到了以下端点来提供完整的功能

OneBot11 协议端点

  • get_group_member_info - 自己在群内的详细信息、群内 AT 悬浮窗的内容
  • get_group_member_list - 群成员列表
  • get_system_msg - 主动刷新系统消息(好友、群申请之类的)
  • get_version_info - Bot 信息面板,同时用于 Bot 类型区分
  • get_login_info - 登录初始化信息
  • get_msg - 主动获取消息,主要用在没有开上报自己消息的情况下获取发送的消息
  • get_forward_msg - 合并转发消息面板
  • get_chat_history - 获取历史消息记录(可以拆为私聊群聊两个)
  • get_friend_list - 好友列表
  • get_group_list - 群列表
  • get_class_info - 分组信息(分组 class_id 对应的名字),用于显示分组
  • send_msg - 发送消息(可以拆为私聊群聊两个)
  • delete_msg - 撤回消息
  • set_group_kick - 群组踢人
  • set_friend_add_request - 好友请求处理
  • set_group_add_request - 群请求处理

扩展端点

  • fetch_custom_face - 收藏表情列表
  • get_file_url - 获取文件下载链接(如果消息里没有返回)
  • get_video_url - 获取视频直链用于显示播放(如果消息里没有返回)
  • set_message_read - 设置消息已读,用于清除其他客户端的新消息提醒
  • send_temp_msg - 临时会话发送消息
  • set_nickname - 设置昵称
  • set_signature - 设置签名

SQL2 扩展端点

  • http_proxy - (计划遗弃)代理请求 Web API,主要用于获取一些从 Web API 请求的东西;由于 SQL2 是个 Web 应用,由前端直接请求会遇到跨域问题;同时对用户的 Cookie 来说也不安全。提供以下功能:群组文件功能、用户拓展信息、群组拓展信息、群公告功能、精华消息。有些 Bot 可能提供了单独的端口实现上述的某些功能,在未来这个功能或许可以被完全替换掉。
@Stapxs Stapxs pinned this issue Nov 14, 2023
@Stapxs Stapxs changed the title [ 提醒 ] 正在尝试适配 OpenShamrock [ 提醒 ] 其他 Bot 框架的适配 Dec 25, 2023
@Stapxs
Copy link
Owner Author

Stapxs commented Dec 25, 2023

Lagrange.OneBot

📦 -> https://github.com/KonataDev/Lagrange.Core

一个用 Net 写的 NTQQ 协议 bot

image

缺失端点清单

  • get_system_msg
  • get_chat_history
  • get_class_info
  • fetch_custom_face
  • set_message_read
  • send_temp_msg
  • set_nickname
  • set_signature
  • http_proxy

@ghost
Copy link

ghost commented Feb 23, 2024

Lagrange.OneBot

好友列表 历史消息都已经写完了
剩下的几个你可以考虑Issue FeatReq
WebAPI确实是没救了

(获取收藏表情也写好了
好友分组暂时不想写

@Stapxs Stapxs added the ✨ 功能 新的功能建议 label Apr 10, 2024
@Stapxs
Copy link
Owner Author

Stapxs commented Apr 16, 2024

NapCat.OneBot / LLOneBot

📦 -> https://github.com/NapNeko/NapCatQQ
📦 -> https://github.com/LLOneBot/LLOneBot

一个用 nodejs 写的 NTQQ headless client Bot
因为完整遵循 OneBot V11,所以完美支持 SQL2

LLOneBot 和 NapCat 是同一个开发者,功能和设计上是一样的;一层并没有对它进行完整的测试,如果有问题请提交 issue

image

端点缺失清单

  • get_system_msg
  • get_file_url
  • get_video_url
  • set_message_read
  • get_class_info
  • send_temp_msg
  • fetch_custom_face
  • set_nickname
  • set_signature
  • http_proxy

@Stapxs Stapxs changed the title [ 提醒 ] 其他 Bot 框架的适配 [ 提醒 ] Bot 框架的适配情况 Apr 17, 2024
@Stapxs Stapxs removed the ✨ 功能 新的功能建议 label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant