yolkbot 0.1.1-alpha.39 → 0.1.1-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/package.json +1 -1
- package/src/bot.js +6 -0
package/package.json
CHANGED
package/src/bot.js
CHANGED
|
@@ -1723,6 +1723,8 @@ export class Bot {
|
|
|
1723
1723
|
sessionId: this.account.sessionId
|
|
1724
1724
|
});
|
|
1725
1725
|
|
|
1726
|
+
if (typeof response === 'string') return response;
|
|
1727
|
+
|
|
1726
1728
|
this.account.cw.limit = response.limit;
|
|
1727
1729
|
this.account.cw.atLimit = response.limit > 3;
|
|
1728
1730
|
|
|
@@ -1746,6 +1748,8 @@ export class Bot {
|
|
|
1746
1748
|
token: null
|
|
1747
1749
|
}, this.proxy, this.instance);
|
|
1748
1750
|
|
|
1751
|
+
if (typeof response === 'string') return response;
|
|
1752
|
+
|
|
1749
1753
|
if (response.error) {
|
|
1750
1754
|
if (response.error == 'RATELIMITED') {
|
|
1751
1755
|
await this.checkChiknWinner();
|
|
@@ -1780,6 +1784,8 @@ export class Bot {
|
|
|
1780
1784
|
sessionId: this.account.sessionId
|
|
1781
1785
|
});
|
|
1782
1786
|
|
|
1787
|
+
if (typeof response === 'string') return response;
|
|
1788
|
+
|
|
1783
1789
|
if (response.result !== 'SUCCESS') {
|
|
1784
1790
|
console.error('Unknown Chikn Winner reset response', response);
|
|
1785
1791
|
return 'unknown_error';
|