-
Notifications
You must be signed in to change notification settings - Fork 8
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
希望支持 kmarkdown 的构造和解析 #23
Comments
这周末看看能不能超一个 |
其实我不太理解为什么需要构造和解析kmd,手写有什么局限性或者说构造和解析有什么优势吗() |
类似于为什么要用 MessageSegment 代替 CQ码 |
我觉得比较好的方案是把kmd相关的功能单独做成一个库,然后由插件开发者手动调用。 看看@Tian-que 怎么说 |
其实需要mention的id的话可以在事件的extra属性拿到
|
从复用角度来看,就像@ssttkkl 说的那样, 这部分可以单独抽出来作为一个功能性组件,@kexue-z搞了一个Python实现的KaiheilaCardBuilder,可以试一下 |
@abrahum 的 kook 和 walle-k 中实现了类似的功能:
https://github.com/abrahum/kook/blob/master/src/kmarkdown/mod.rs
https://github.com/abrahum/kook/blob/master/src/kmarkdown/parse.rs
https://github.com/onebot-walle/walle-k/blob/main/src/parse/message.rs
The text was updated successfully, but these errors were encountered: