kookIfSupport
在 ApplicationBuilder.bots 作用域中寻找并使用 KookBotManager.
simpleApplication {
bots {
Kook {
val bot = register("client id", "token") {
// config...
}
bot.start()
}
}
}
Content copied to clipboard
如果当前环境中不存在任何 KookBotManager, 则不会执行 block。