KookBotVerifyInfoConfiguration    
    data class KookBotVerifyInfoConfiguration(val ticket: KookBotVerifyInfoConfiguration.Ticket, val config: KookBotVerifyInfoConfiguration.Config? = null) : SerializableBotConfiguration(source)
.bot 配置文件读取的配置信息实体, 用于接收序列化配置信息。
在 KookBotVerifyInfoConfiguration 中,Ticket.clientId 和 Ticket.token 为必选项, 存在于当前配置属性的最外层。除了必选项以外还存在部分可选项存在于 KookBotVerifyInfoConfiguration.Config 类型中, 作为 config 属性使用。
简化json e.g.
{
  "component": "simbot.kook",
  "ticket": {
    "clientId": "Your client ID",
    "token": "Your ws token"
  }
}Content copied to clipboard
完整json e.g.
{
 "component": "simbot.kook",
 "ticket": {
    "clientId": "Your client ID",
    "token": "Your ws token"
  },
 "config": {
     "isCompress": true,
     "syncPeriods": {
         "guild": {
             "syncPeriod": 180000,
             "batchDelay": 0
         }
      },
      "clientEngineConfig": {
           "threadsCount": null,
           "pipelining": null
      },
      "wsEngineConfig": {
           "threadsCount": null,
           "pipelining": null
      },
      "timeout": {
          "connectTimeoutMillis": 5000,
          "requestTimeoutMillis": 5000,
          "socketTimeoutMillis": null
      },
      "wsConnectTimeout": null,
      "isNormalEventProcessAsync": null
   }
}Content copied to clipboard
Constructors
Link copied to clipboard
                  constructor(ticket: KookBotVerifyInfoConfiguration.Ticket, config: KookBotVerifyInfoConfiguration.Config? = null)
Types
Link copied to clipboard
                  data class Config(val isCompress: Boolean? = null, val syncPeriods: KookBotConfiguration.SyncPeriods? = null, val clientEngineConfig: BotConfiguration.EngineConfiguration? = null, val wsEngineConfig: BotConfiguration.EngineConfiguration? = null, val timeout: BotConfiguration.TimeoutConfiguration? = null, val wsConnectTimeout: Long? = null, val isNormalEventProcessAsync: Boolean? = null)
在 KookBotVerifyInfoConfiguration 中除了必须的bot信息以外的可选配置信息。