Config
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)(source)
MiraiBotVerifyInfoConfiguration 中除了必要信息以外的额外配置信息。
Constructors
Link copied to clipboard
fun Config(deviceInfoSeed: Long = DEFAULT_SIMBOT_MIRAI_DEVICE_INFO_SEED, workingDir: File = BotConfiguration.Default.workingDir, heartbeatPeriodMillis: Long = BotConfiguration.Default.heartbeatPeriodMillis, statHeartbeatPeriodMillis: Long = BotConfiguration.Default.statHeartbeatPeriodMillis, heartbeatTimeoutMillis: Long = BotConfiguration.Default.heartbeatTimeoutMillis, heartbeatStrategy: BotConfiguration.HeartbeatStrategy = BotConfiguration.Default.heartbeatStrategy, reconnectionRetryTimes: Int = BotConfiguration.Default.reconnectionRetryTimes, autoReconnectOnForceOffline: Boolean = BotConfiguration.Default.autoReconnectOnForceOffline, protocol: BotConfiguration.MiraiProtocol = BotConfiguration.Default.protocol, highwayUploadCoroutineCount: Int = BotConfiguration.Default.highwayUploadCoroutineCount, deviceInfoJson: DeviceInfo? = null, simpleDeviceInfoJson: SimpleDeviceInfo? = null, deviceInfoFile: String? = null, deviceInfoConfiguration: DeviceInfoConfiguration? = DeviceInfoConfiguration.Auto(), noNetworkLog: Boolean = false, noBotLog: Boolean = false, isShowingVerboseEventLog: Boolean = BotConfiguration.Default.isShowingVerboseEventLog, cacheDir: File = BotConfiguration.Default.cacheDir, contactListCacheConfiguration: MiraiBotVerifyInfoConfiguration.ContactListCacheConfiguration = ContactListCacheConfiguration(), loginCacheEnabled: Boolean = BotConfiguration.Default.loginCacheEnabled, convertLineSeparator: Boolean = BotConfiguration.Default.convertLineSeparator, recallMessageCacheStrategy: MiraiBotVerifyInfoConfiguration.RecallMessageCacheStrategyType? = null, recallMessageCacheStrategyConfig: RecallMessageCacheStrategyConfiguration = RecallMessageCacheStrategyConfiguration.invalid(), accountSecrets: Boolean = false)
Types
Functions
Link copied to clipboard
将当前配置的信息转化为 MiraiBotConfiguration 实例。
Properties
Link copied to clipboard
如果为 true
, 则会使用 BotConfiguration.disableAccountSecretes 禁用 account.secrets
的保存。
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@ApiStatus.ScheduledForRemoval(inVersion = "3.0.0.0")
优先使用 deviceInfo.
Link copied to clipboard
Link copied to clipboard