You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
目前框架的内部实现主要依赖 OneBot 11,对 OneBot 12 和其他协议兼容性不佳,无法很好地进行扩展。
为了方便兼容 OneBot 12 和其他协议,考虑采用 Adapter,Adapter 遵循一个通用的适配器接口(Adapter Interface),框架(用户)对通信协议(机器人客户端)的调用依赖适配器接口,不关注具体实现,适配器需要提供适配器接口定义的所有方法,且尽可能保持行为一致。
目前考虑优先迁移现有实现(OneBot 11)至适配器模式,并预期加入 OneBot 12 适配器。
由于核心实现的变动,此举必定造成大量不兼容改动,因此考虑定为 3.0 内容。
关于具体的接口定义和实现,需要进一步讨论。
Beta Was this translation helpful? Give feedback.
All reactions