KookBotManager

abstract class KookBotManager : BotManager<KookComponentBot> , KookBotRegistrar

KookComponentBot 的管理器实现。

Author

ForteScarlet

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Factory : EventProviderFactory<KookBotManager, KookBotManagerConfiguration>

Functions

Link copied to clipboard
abstract fun all(): List<KookComponentBot>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun cancel(reason: Throwable?): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelBlocking(reason: Throwable?): Boolean
Link copied to clipboard
open fun delay(duration: JavaDuration, runnable: Runnable): DelayableCompletableFuture<Void?>
open fun delay(millis: Long, runnable: Runnable): DelayableCompletableFuture<Void?>
open fun delay(time: Long, timeUnit: TimeUnit, runnable: Runnable): DelayableCompletableFuture<Void?>
Link copied to clipboard
open fun <V> delayAndCompute(duration: JavaDuration, supplier: Supplier<V>): DelayableCompletableFuture<V>
open fun <V> delayAndCompute(millis: Long, supplier: Supplier<V>): DelayableCompletableFuture<V>
open fun <V> delayAndCompute(time: Long, timeUnit: TimeUnit, supplier: Supplier<V>): DelayableCompletableFuture<V>
Link copied to clipboard
abstract operator fun get(id: ID): KookComponentBot?
Link copied to clipboard
abstract fun invokeOnCompletion(handler: CompletionHandler)
Link copied to clipboard
abstract suspend fun join()
Link copied to clipboard
open fun joinBlocking()
Link copied to clipboard
open override fun register(verifyInfo: BotVerifyInfo): KookComponentBot

通过 .bot 的json配置文件注册一个bot信息。

通过 ticketblock 注册bot。

abstract override fun register(ticket: KookBot.Ticket, configuration: KookComponentBotConfiguration): KookComponentBot

通过 ticketconfiguration 注册bot。

open override fun register(clientId: String, token: String, block: KookComponentBotConfiguration.() -> Unit): KookComponentBot

通过 clientIdtokenblock 注册bot。

open override fun register(clientId: String, token: String, configuration: KookComponentBotConfiguration): KookComponentBot

通过 clientIdtokenconfiguration 注册bot。

Link copied to clipboard
abstract suspend fun start(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun waiting()

Properties

Link copied to clipboard
abstract override val component: KookComponent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val isActive: Boolean
Link copied to clipboard
abstract val isCancelled: Boolean
Link copied to clipboard
abstract val isStarted: Boolean