steamutils 1.3.43 → 1.3.44
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/.idea/deployment.xml +14 -0
- package/SteamClient.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
|
|
4
|
+
<serverData>
|
|
5
|
+
<paths name="botnatridiscord">
|
|
6
|
+
<serverdata>
|
|
7
|
+
<mappings>
|
|
8
|
+
<mapping local="$PROJECT_DIR$" web="/" />
|
|
9
|
+
</mappings>
|
|
10
|
+
</serverdata>
|
|
11
|
+
</paths>
|
|
12
|
+
</serverData>
|
|
13
|
+
</component>
|
|
14
|
+
</project>
|
package/SteamClient.js
CHANGED
|
@@ -2279,20 +2279,20 @@ export function increaseCSGO_VER() {
|
|
|
2279
2279
|
return ++CSGO_VER
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
|
-
SteamClient.isAccountPlayable = function isAccountPlayable(
|
|
2282
|
+
SteamClient.isAccountPlayable = function isAccountPlayable(params, timeoutMs) {
|
|
2283
2283
|
return new Promise((resolve) => {
|
|
2284
2284
|
const timeout = setTimeout(() => {
|
|
2285
2285
|
doResolve();
|
|
2286
2286
|
}, timeoutMs || 30000);
|
|
2287
2287
|
|
|
2288
2288
|
const steamClient = new SteamClient({
|
|
2289
|
-
cookie,
|
|
2290
2289
|
isFakeGameScore: false,
|
|
2291
2290
|
isAutoPlay: true,
|
|
2292
2291
|
isPartyRegister: false,
|
|
2293
2292
|
isInvisible: false,
|
|
2294
2293
|
MAX_GAME_PLAY: 10,
|
|
2295
2294
|
games: 730,
|
|
2295
|
+
...params,
|
|
2296
2296
|
});
|
|
2297
2297
|
|
|
2298
2298
|
steamClient.onEvent("error", ({eresult, msg, error}) => {
|