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

考虑支持方言 #123

Open
ForteScarlet opened this issue Oct 12, 2024 · 3 comments
Open

考虑支持方言 #123

ForteScarlet opened this issue Oct 12, 2024 · 3 comments
Labels
特性 New feature or request 讨论 一些交流与讨论

Comments

@ForteScarlet
Copy link
Member

ob协议的实现不尽相同,仅靠标准的定义可能无法满足更多样的服务端 ‘特性’

方言的支持可能会导致不兼容变更,也许需要递进 major。

@ForteScarlet ForteScarlet added 特性 New feature or request 讨论 一些交流与讨论 labels Oct 12, 2024
@ForteScarlet
Copy link
Member Author

待定:比起方言,更多的可能是发送用消息解析?

@ForteScarlet ForteScarlet changed the title 支持‘方言’ 考虑支持方言 Oct 21, 2024
@HollisMeynell
Copy link

可以增加一个通用的接口调用, 直接允许自定义 action, params?

@ForteScarlet
Copy link
Member Author

可以增加一个通用的接口调用, 直接允许自定义 action, params?

API类型本身的确是接口 (OneBotApi),是可以自行实现并扩展的(使用Kotlin),然后就可以直接通过 bot.execute 执行并获取结果了。

不过Java中实现会略繁琐一些,因为涉及到ktx的序列化和挂起函数之类的问题,也许可以考虑提供一些便利条件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
特性 New feature or request 讨论 一些交流与讨论
Projects
None yet
Development

No branches or pull requests

2 participants