Skip to content

bindCapabilities<B>(bot, registry): B & BotBase

把能力注册表中的实现绑定为 bot 的方法。 适配器在 start() 里对自己创建的 bot 调用一次, 插件拿到的 bot 就带上了完整操作面。

Type Parameters ​

B ​

B extends object

Parameters ​

bot ​

B

registry ​

CapabilityRegistry

Returns ​

B & BotBase

Released under the MIT License with love.