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

Option 3 #195

Open
cc004 opened this issue Sep 2, 2021 · 5 comments
Open

Option 3 #195

cc004 opened this issue Sep 2, 2021 · 5 comments

Comments

@cc004
Copy link

cc004 commented Sep 2, 2021

直接依赖aiocqhttp,同时实现常用nonbot api,既可以提升性能,又可以保证现有插件兼容性

@Ice9Coffee
Copy link
Owner

和Option 1没区别吧
nonebot 1的常用api不就on_command和on_neutral_language嘛

你说nonebot 2?累死我吧😅

@Ice9Coffee
Copy link
Owner

倒是还有个Option 3:
将hoshino特性纳入nonebot 2,使hoshino插件成为nonebot 2的标准插件😁

@cc004
Copy link
Author

cc004 commented Sep 2, 2021

我说的是nb1,但是还是有人@bot startup或者直接send private一类的直接调用啊,这些都兼容一下不就行了

@Ice9Coffee Ice9Coffee added this to the 不再依赖 nonebot 1.x milestone Sep 2, 2021
@Ice9Coffee
Copy link
Owner

那就是Option1。
把nonebot1的装饰器抄过来就好了,send private是aiocqhttp的底层魔法方法,无需特殊处理

@cc004
Copy link
Author

cc004 commented Sep 2, 2021

哦,那确实是这样,大不了基于hoshino写个nonebot1兼容层

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

2 participants