QGBotFileConfiguration
data class QGBotFileConfiguration(val ticket: TicketConfiguration, val config: QGBotFileConfiguration.Config? = null) : SerializableBotConfiguration(source)
bot配置文件所对应的配置类,
通过由配置文件读取而来的信息来对指定Bot进行信息配置。
{
"component": "simbot.qqguild",
"ticket": {
"appId": "appId-value",
"secret": "secret-value",
"token": "token-value",
},
"config": null
}
Content copied to clipboard
Types
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
bot票据信息。是与 Bot.Ticket 相对应的映射类
Link copied to clipboard
data class TimeoutConfig(val apiHttpRequestTimeoutMillis: Long? = null, val apiHttpConnectTimeoutMillis: Long? = null, val apiHttpSocketTimeoutMillis: Long? = null)
与部分超时相关的配置信息。