useMirai
fun <A : Application> ApplicationBuilder<A>.useMirai(builder: MiraiComponentUsageBuilder<A>.() -> Unit = {})(source)
同时安装使用 MiraiComponent 和 MiraiBotManager.
e.g.
simbotApplication(Foo) {
useMirai {
component {
// config MiraiComponent...
}
botManager {
// config MiraiBotManager...
}
}
// ...
}
Content copied to clipboard
simbotApplication(Foo) {
useMirai()
}
Content copied to clipboard