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

[Feature]: 它是否支持onebot12 #694

Open
hhhhhge opened this issue Feb 21, 2024 · 10 comments
Open

[Feature]: 它是否支持onebot12 #694

hhhhhge opened this issue Feb 21, 2024 · 10 comments
Labels
IM: aiocqhttp onebot协议适配器相关 改进 新功能或请求

Comments

@hhhhhge
Copy link

hhhhhge commented Feb 21, 2024

这是一个?

新功能

详细描述

如果不支持onebot12希望能支持一下,或者写一个插件来转换也可以

@hhhhhge hhhhhge added the 改进 新功能或请求 label Feb 21, 2024
@RockChinQ
Copy link
Owner

接入 onebot 协议用的是 aiocqhttp 框架,可以试一下是否支持,我还不是很了解 ob11 和 12 的主要区别

@RockChinQ RockChinQ added the IM: aiocqhttp onebot协议适配器相关 label Feb 21, 2024
@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

接入 onebot 协议用的是 aiocqhttp 框架,可以试一下是否支持,我还不是很了解 ob11 和 12 的主要区别

这区别还挺大,比如链接好像就有区别

@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

接入 onebot 协议用的是 aiocqhttp 框架,可以试一下是否支持,我还不是很了解 ob11 和 12 的主要区别

https://12.onebot.dev/ 要不看看这个

@RockChinQ
Copy link
Owner

原则上来说我们只做应用层的东西,目前似乎没有找到成熟的ob12接入框架,欢迎贡献

@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

原则上来说我们只做应用层的东西,目前似乎没有找到成熟的ob12接入框架,欢迎贡献

主要是我想试试微信机器人,看了下好像 https://github.com/JustUndertaker/ComWeChatBotClient 这个项目很合适,并且在nonebot2上实验成功没有问题,它是基于onebot12的,又看看发现好像没有其他gpt框架比你的完善,所有想要你支持一下onebot12

@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

如果可以写一个插件之类的稍稍转换一下协议就可以了

@RockChinQ
Copy link
Owner

RockChinQ commented Feb 21, 2024

可以的,3.1 就会完善插件 API,支持尽可能多的组件扩展。事实上你现在也可以自行实现一个 消息平台适配器,参考 pkg.platform.sources 下的实现,按照相似的方式继承和标记装饰器,将代码保存到插件目录即可加载。

@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

可以的,3.1 就会完善插件 API,支持尽可能多的组件扩展

那就请你帮我写一个插件行吗

@RockChinQ
Copy link
Owner

刚刚的评论讲解了大致方式,可以自己研究一下,目前暂时没有时间进行计划外的开发

@hhhhhge
Copy link
Author

hhhhhge commented Feb 21, 2024

刚刚的评论讲解了大致方式,可以自己研究一下,目前暂时没有时间进行计划外的开发

好吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IM: aiocqhttp onebot协议适配器相关 改进 新功能或请求
Projects
None yet
Development

No branches or pull requests

2 participants