QGBotFileConfiguration

bot配置文件所对应的配置类,

通过由配置文件读取而来的信息来对指定Bot进行信息配置。

{
"component": "simbot.qqguild",
"ticket": {
"appId": "appId-value",
"secret": "secret-value",
"token": "token-value",
},
"config": null
}

Constructors

Link copied to clipboard
constructor(ticket: TicketConfiguration, config: QGBotFileConfiguration.Config? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Config(val serverUrl: String? = null, val shardConfig: ShardConfig = ShardConfig.Full, val intentsConfig: IntentsConfig = IntentsConfig.Raw( EventIntents.Guilds.intents + EventIntents.GuildMembers.intents + EventIntents.PublicGuildMessages.intents ), val clientProperties: Map<String, String>? = null, val timeoutConfig: QGBotFileConfiguration.TimeoutConfig? = null, val cacheConfig: CacheConfig? = DEFAULT.cacheConfig, val dispatcherConfiguration: DispatcherConfiguration? = null)

其他配置信息。

Link copied to clipboard
data class Ticket(val appId: String, val secret: String, val token: String)

bot票据信息。是与 Bot.Ticket 相对应的映射类

Link copied to clipboard
data class TimeoutConfig(val apiHttpRequestTimeoutMillis: Long? = null, val apiHttpConnectTimeoutMillis: Long? = null, val apiHttpSocketTimeoutMillis: Long? = null)

与部分超时相关的配置信息。

Properties

Link copied to clipboard

其他配置信息。

Link copied to clipboard

bot相关的票据信息,必填。