Initial commit
This commit is contained in:
commit
95f70d89b8
1 changed files with 18 additions and 0 deletions
18
bot.js
Normal file
18
bot.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
function startClickers() {
|
||||
delayClick('#randomBossPortal a', 10);
|
||||
delayClick('#popup span button:contains("Summon Boss")', 1);
|
||||
delayClick('#popup span button:contains("CONTINUE")', 1);
|
||||
}
|
||||
|
||||
function delayClick(selector, seconds) {
|
||||
var waiting = setInterval(
|
||||
function() {
|
||||
if ($(selector).length > 0) {
|
||||
$(selector).get(0).click();
|
||||
}
|
||||
},
|
||||
seconds * 1000
|
||||
)
|
||||
}
|
||||
|
||||
startClickers();
|
Loading…
Reference in a new issue