KookBotManagerConfiguration

KookBotManager 使用的配置类。

Functions

Link copied to clipboard
abstract fun register(ticket: KookBot.Ticket, block: KookComponentBotConfiguration.() -> Unit = {}, onBot: suspend (KookComponentBot) -> Unit)

通过 ticketblock 注册bot。

abstract fun register(ticket: KookBot.Ticket, configuration: KookComponentBotConfiguration, onBot: suspend (KookComponentBot) -> Unit)

通过 ticketconfiguration 注册bot。

abstract fun register(clientId: String, token: String, block: KookComponentBotConfiguration.() -> Unit = {}, onBot: suspend (KookComponentBot) -> Unit)

通过 clientIdtokenblock 注册bot。

abstract fun register(clientId: String, token: String, configuration: KookComponentBotConfiguration, onBot: suspend (KookComponentBot) -> Unit)

通过 clientIdtokenconfiguration 注册bot。

Properties

Link copied to clipboard

bot管理器中为所有bot分配的父级协程上下文。