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

关于HoshinoBot迁移到nonebot2的可能性 #196

Open
AkiraXie opened this issue Sep 2, 2021 · 4 comments
Open

关于HoshinoBot迁移到nonebot2的可能性 #196

AkiraXie opened this issue Sep 2, 2021 · 4 comments

Comments

@AkiraXie
Copy link
Contributor

AkiraXie commented Sep 2, 2021

在今年1月底时候,我尝试性将HoshinoBot迁移到nonebot2,保留了hoshinobot的service层封装。
见于 https://github.com/AkiraXie/hoshino.nb2

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

感谢!正式迁移时可作为参考。

service层最近有些改动,同时导致了bug #193 ,可能无法直接合入

@AkiraXie
Copy link
Contributor Author

AkiraXie commented Sep 2, 2021

感谢!正式迁移时可作为参考。

service层最近有些改动,同时导致了bug #193 ,可能无法直接合入

match问题在nb2已经考虑进去了,因为nb2除了event在流转还有一个state在流转,on_regex在处理的时候会将re.match之后的group内容进行保留

@AkiraXie
Copy link
Contributor Author

AkiraXie commented Sep 2, 2021

nb2有一个比较清晰的事件流转过程,咖啡佬有时间的话可以看一下这个文档https://v2.nonebot.dev/docs/advanced/

@Ice9Coffee Ice9Coffee reopened this Apr 10, 2022
@AkiraXie
Copy link
Contributor Author

如果想保留单一触发原则,可以看一下基于 zerobot 的 hoshino 迁移 https://github.com/AkiraXie/hoshino.go

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