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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers (self) bot in under 10 lines.",
4
- "version": "0.1.1-alpha.39",
4
+ "version": "0.1.1-alpha.40",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
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';