attack now button

This commit is contained in:
2026-05-01 02:37:46 +03:00
parent ae37674bcc
commit efa63f761f
4 changed files with 66 additions and 0 deletions

View File

@@ -52,6 +52,13 @@ async function pollAndExecute() {
lastKnownFarmSettings = cmdData.farm_settings || {};
lastKnownBotSettings = cmdData.bot_settings || {};
// Handle manual bootcamp attack trigger
if (lastKnownBotSettings.attack_now) {
log('Manual bootcamp attack requested! Firing immediately...');
// Fire asynchronously so it doesn't block the rest of pollAndExecute
setTimeout(autoBootcampLoop, 0);
}
// Feature flags — default to all on if server doesn't send them (backward compatible)
const features = cmdData.enabled_features || ['farm', 'admin'];
const farmOn = features.includes('farm');