MiraiBotVerifyInfoConfiguration

@InternalApi
data class MiraiBotVerifyInfoConfiguration(val code: Long, val passwordInfo: PasswordInfoConfiguration, var config: MiraiBotVerifyInfoConfiguration.Config = Config())(source)

通过 BotVerifyInfo 进行注册的bot信息配置类。

对一个bot的配置, 账号(code)与密码(passwordInfo)为必须属性, 其他额外配置位于 config 属性中。

See also

Constructors

Types

Link copied to clipboard
data class Config(var deviceInfoSeed: Long = DEFAULT_SIMBOT_MIRAI_DEVICE_INFO_SEED, var workingDir: File = BotConfiguration.Default.workingDir, var heartbeatPeriodMillis: Long = BotConfiguration.Default.heartbeatPeriodMillis, var statHeartbeatPeriodMillis: Long = BotConfiguration.Default.statHeartbeatPeriodMillis, var heartbeatTimeoutMillis: Long = BotConfiguration.Default.heartbeatTimeoutMillis, var heartbeatStrategy: BotConfiguration.HeartbeatStrategy = BotConfiguration.Default.heartbeatStrategy, var reconnectionRetryTimes: Int = BotConfiguration.Default.reconnectionRetryTimes, var autoReconnectOnForceOffline: Boolean = BotConfiguration.Default.autoReconnectOnForceOffline, var protocol: BotConfiguration.MiraiProtocol = BotConfiguration.Default.protocol, var highwayUploadCoroutineCount: Int = BotConfiguration.Default.highwayUploadCoroutineCount, var deviceInfoJson: DeviceInfo? = null, var simpleDeviceInfoJson: SimpleDeviceInfo? = null, var deviceInfoFile: String? = null, var deviceInfoConfiguration: DeviceInfoConfiguration? = DeviceInfoConfiguration.Auto(), var noNetworkLog: Boolean = false, var noBotLog: Boolean = false, var isShowingVerboseEventLog: Boolean = BotConfiguration.Default.isShowingVerboseEventLog, var cacheDir: File = BotConfiguration.Default.cacheDir, var contactListCacheConfiguration: MiraiBotVerifyInfoConfiguration.ContactListCacheConfiguration = ContactListCacheConfiguration(), var loginCacheEnabled: Boolean = BotConfiguration.Default.loginCacheEnabled, var convertLineSeparator: Boolean = BotConfiguration.Default.convertLineSeparator, recallMessageCacheStrategy: MiraiBotVerifyInfoConfiguration.RecallMessageCacheStrategyType? = null, var recallMessageCacheStrategyConfig: RecallMessageCacheStrategyConfiguration = RecallMessageCacheStrategyConfiguration.invalid(), var accountSecrets: Boolean = false)

MiraiBotVerifyInfoConfiguration 中除了必要信息以外的额外配置信息。

Link copied to clipboard
data class ContactListCacheConfiguration(var saveIntervalMillis: Long = BotConfiguration.Default.contactListCache.saveIntervalMillis, var friendListCacheEnabled: Boolean = BotConfiguration.Default.contactListCache.friendListCacheEnabled, var groupMemberListCacheEnabled: Boolean = BotConfiguration.Default.contactListCache.groupMemberListCacheEnabled)

mirai的联系人列表缓存配置的对应配置类。

Functions

Properties

Link copied to clipboard
val code: Long

账号。

Link copied to clipboard
Link copied to clipboard

必要属性之外的额外配置属性。

Link copied to clipboard

用户密码信息配置。