MiraiBotVerifyInfoConfiguration
@InternalApi
通过 BotVerifyInfo 进行注册的bot信息配置类。
对一个bot的配置, 账号(code)与密码(passwordInfo)为必须属性, 其他额外配置位于 config 属性中。
See also
Constructors
Link copied to clipboard
fun MiraiBotVerifyInfoConfiguration(code: Long, passwordInfo: PasswordInfoConfiguration, config: MiraiBotVerifyInfoConfiguration.Config = Config())
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的联系人列表缓存配置的对应配置类。
Link copied to clipboard
enum RecallMessageCacheStrategyType : Enum<MiraiBotVerifyInfoConfiguration.RecallMessageCacheStrategyType>
使用的消息撤回缓存策略类型。
Functions
Link copied to clipboard
通过 config 构建一个 MiraiBotConfiguration.