TencentGuildBotManager

abstract class TencentGuildBotManager : BotManager<TencentGuildComponentBot>

QQ频道BOT的bot管理器。

TencentGuildBotManager 不允许注册相同 appId 的bot。

Author

ForteScarlet

Constructors

Link copied to clipboard

Types

Link copied to clipboard

Functions

Link copied to clipboard
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): TencentGuildComponentBot?
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): TencentGuildComponentBot

注册一个Bot的信息,并使用默认配置。

abstract fun register(appId: String, appKey: String, token: String, block: TencentGuildBotConfiguration.() -> Unit = {}): TencentGuildComponentBot

通过所需信息注册一个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: TencentGuildComponent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val eventProcessor: EventProcessor
Link copied to clipboard
abstract val isActive: Boolean
Link copied to clipboard
abstract val isCancelled: Boolean
Link copied to clipboard
abstract val isStarted: Boolean