useOneBot11
fun ApplicationFactoryConfigurer<*, *, *>.useOneBot11(builder: OneBot11UsageBuilder.() -> Unit = {})(source)
同时安装使用 OneBot11Component 和 OneBotBotManager.
usage:
simbotApplication(Foo) {
useOneBot11()
// 或
useOneBot11 {
component { ... }
botManager { ... }
}
}
Content copied to clipboard
相当于:
simbotApplication(Foo) {
install(OneBot11Component) { ... }
install(OneBotBotManager) { ... }
}
Content copied to clipboard