TencentBotViaBotFileConfiguration

data class TencentBotViaBotFileConfiguration(val appId: String, val appKey: String, val token: String, val totalShard: Int? = null, val intentValues: Map<Int, Int> = emptyMap(), val defaultIntents: List<String> = EventSignals.intents.keys.toList(), val serverUrl: String? = null)

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

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

Constructors

Link copied to clipboard
fun TencentBotViaBotFileConfiguration(appId: String, appKey: String, token: String, totalShard: Int? = null, intentValues: Map<Int, Int> = emptyMap(), defaultIntents: List<String> = EventSignals.intents.keys.toList(), serverUrl: String? = null)

Properties

Link copied to clipboard

app id.

Link copied to clipboard

app key.

Link copied to clipboard

默认的 Intents. 如果对应分片下 intentValues 无法找到指定的 intent, 则使用此默认值。

Link copied to clipboard

分片策略。key为分片值, value为对应分片下所需的 intent.

Link copied to clipboard
val serverUrl: String? = null

服务器路径地址。

Link copied to clipboard

token.

Link copied to clipboard
val totalShard: Int? = null

分片总数。