I Luk Kim 3 years ago
parent ea4d4e5046
commit 3fffa7be6c

@ -155,8 +155,13 @@ module.exports = class BingAuto2 {
} }
await sleep(5); await sleep(5);
try {
let point = await this.getText(this.mainPage, 'div.info-columns mee-rewards-counter-animation span'); let point = await this.getText(this.mainPage, 'div.info-columns mee-rewards-counter-animation span');
console.log('> Current point :', point); console.log('> Current point :', point);
} catch (e) {
console.log('Failed to get point');
return 0;
}
return parseInt(point.replace(',', '')); return parseInt(point.replace(',', ''));
} }

Loading…
Cancel
Save