simbot-component-onebot icon indicating copy to clipboard operation
simbot-component-onebot copied to clipboard

考虑支持方言

Open ForteScarlet opened this issue 1 year ago • 4 comments

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

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

ForteScarlet avatar Oct 12 '24 16:10 ForteScarlet

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

ForteScarlet avatar Oct 18 '24 06:10 ForteScarlet

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

HollisMeynell avatar Nov 12 '24 13:11 HollisMeynell

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

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

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

ForteScarlet avatar Nov 12 '24 13:11 ForteScarlet

方言也许可以只针对内部整合的行为作方言,比如 send。目前如果想要转发合并消息,直接 send (也就是 /send_xxx_msg)是不行的,参考 #244 。

ForteScarlet avatar Sep 14 '25 02:09 ForteScarlet