Skip to content

Captcha for farm #59

@stamas1

Description

@stamas1

Recently they added captcha when you manually farm villages one by one but not when you farm them all at once(when you have captain). Do i just copy this
/* Check for captcha conditions every 300ms */
this.checkCaptchaInterval = setInterval(() => {
if (this.simulateCaptcha || $('.botcheck').length || $('#recaptcha_window').length) {
if (!this.captchaActive) {
this.console.log('Captcha active, autobuild stopped working');
clearInterval(this.interval);
this.captchaActive = true;
}
} else {
if (this.captchaActive) {
this.console.log('Captcha resolved, autobuild resumed');
this.startInterval(); // Restart autobuild
this.captchaActive = false;
}
}
}, 300);
}

startInterval() {
    this.interval = setInterval(this.main.bind(this), 20000);

and put it inside the cs of the Autofarm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions