-
Notifications
You must be signed in to change notification settings - Fork 1
/
bby.js
31 lines (29 loc) · 794 Bytes
/
bby.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
let addr = "https://t.me/bountybay_bot/deals?startapp=invite-3ba59fae";
const utils = require("/sdcard/sc/utils.js");
function tapToEarn() {
p = textMatches(/Tap-to-earn/).findOne(1000);
if (p) {
p.click();
}
}
function start() {
app.openUrl(addr);
let reg = /(Continue)|(Deals)|(lucky draw)/;
let p = textMatches(reg).findOne(60 * 1000);
if (!p) {
log("no wait");
return;
}
utils.seqenceClick([/treasure/, /close/]);
utils.circleClick(/Continue|Deals/);
utils.circleClick(/Claim.*|Start Daily Farming/);
// //check-in
// p = className("android.widget.TextView").text("Earn").findOne(100);
// if (p) {
// p.parent().click();
// }
}
module.exports = { start };
// start();
// utils.seqenceClick([/close/]);
// utils.circleClick(/Continue|Deals/);