mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
feat: Add warning for unconfigured risk management policies in StartupValidator
This commit is contained in:
@@ -244,13 +244,14 @@ export class StartupValidator {
|
|||||||
|
|
||||||
// Risk management validation
|
// Risk management validation
|
||||||
if (config.riskManagement?.enabled === true) {
|
if (config.riskManagement?.enabled === true) {
|
||||||
if (config.riskManagement.stopOnCritical === true) {
|
// If risk management is enabled, notify the user to ensure policies are configured.
|
||||||
this.addWarning(
|
// This avoids an empty-block lint/compile error and provides actionable guidance.
|
||||||
'config',
|
this.addWarning(
|
||||||
'Risk management will stop execution if critical risk is detected',
|
'riskManagement',
|
||||||
'Bot will halt all accounts if risk score becomes too high'
|
'Risk management is enabled but no specific policies were validated here',
|
||||||
)
|
'Review and configure riskManagement settings (throttles, maxRestarts, detection thresholds)',
|
||||||
}
|
'docs/config.md'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search delays validation
|
// Search delays validation
|
||||||
|
|||||||
Reference in New Issue
Block a user