MiraiBotManager

Mirai组件中对 MiraiBot 进行管理的 BotManager.

Author

ForteScarlet

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun all(): List<MiraiBot>
Link copied to clipboard
Link copied to clipboard
protected open fun beManaged(): Boolean
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(millis: Long, supplier: Supplier<V>): DelayableCompletableFuture<V>
open fun <V> delayAndCompute(time: Long, timeUnit: TimeUnit, supplier: Supplier<V>): DelayableCompletableFuture<V>
Link copied to clipboard
protected abstract suspend fun doCancel(reason: Throwable?): Boolean
Link copied to clipboard
abstract operator fun get(id: ID): MiraiBot?
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): MiraiBot

fun register(code: Long, passwordMD5: ByteArray): MiraiBot
fun register(code: Long, password: String): MiraiBot
abstract fun register(code: Long, password: ByteArray, configuration: MiraiBotConfiguration): MiraiBot
fun register(code: Long, passwordMD5: ByteArray, configuration: MiraiBotConfigurationConfigurator): MiraiBot
abstract fun register(code: Long, password: String, configuration: MiraiBotConfiguration): MiraiBot
fun register(code: Long, password: String, configuration: MiraiBotConfigurationConfigurator): MiraiBot

注册一个Bot。

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

manager中的 start 没有效果。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun waiting()

Properties

Link copied to clipboard
abstract val component: Component
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
Link copied to clipboard
protected abstract val logger: Logger