yolkbot 0.1.0-alpha.21 → 0.1.0-alpha.22
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 +1 -1
- package/src/bot.js +0 -6
- package/src/types/bot.d.ts +9 -0
package/package.json
CHANGED
package/src/bot.js
CHANGED
|
@@ -43,12 +43,6 @@ export class Bot {
|
|
|
43
43
|
static Intents = intents;
|
|
44
44
|
Intents = intents;
|
|
45
45
|
|
|
46
|
-
// params.proxy - a socks(4|5) proxy
|
|
47
|
-
// params.instance - a custom shell URL to run requests through
|
|
48
|
-
// params.doUpdate - whether to auto update
|
|
49
|
-
// params.updateInterval - the auto update interval
|
|
50
|
-
// params.doPing - whether to auto ping (for bot.<ping>)
|
|
51
|
-
// params.pingInterval - the ping interval
|
|
52
46
|
constructor(params = {}) {
|
|
53
47
|
if (params.proxy && IsBrowser)
|
|
54
48
|
throw new Error('proxies do not work and hence are not supported in the browser');
|
package/src/types/bot.d.ts
CHANGED
|
@@ -132,7 +132,16 @@ export interface ChiknWinnerResponse {
|
|
|
132
132
|
rewardTier: number;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
type intents = {
|
|
136
|
+
CHALLENGES: 1,
|
|
137
|
+
STATS: 2,
|
|
138
|
+
PATHFINDING: 3
|
|
139
|
+
}
|
|
140
|
+
|
|
135
141
|
export class Bot {
|
|
142
|
+
static Intents: intents;
|
|
143
|
+
Intents: intents;
|
|
144
|
+
|
|
136
145
|
proxy: string;
|
|
137
146
|
name?: string;
|
|
138
147
|
autoPing: boolean;
|