steamutils 1.3.74 → 1.3.76
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +2426 -2416
- package/index.js +7049 -7035
- package/package.json +1 -1
- package/test_steamclient.js +12 -1
package/package.json
CHANGED
package/test_steamclient.js
CHANGED
@@ -3,7 +3,18 @@ import SteamClient from "./SteamClient.js";
|
|
3
3
|
async function fetchPlayerProfile() {}
|
4
4
|
|
5
5
|
async function main() {
|
6
|
-
|
6
|
+
const steamClient = new SteamClient({
|
7
|
+
cookie: "",
|
8
|
+
isAutoPlay: true,
|
9
|
+
isInvisible: true,
|
10
|
+
});
|
11
|
+
steamClient.onEvent("csgoOnline", function (data) {
|
12
|
+
const storeItems = data.personalStore.items.map(function (item) {
|
13
|
+
return data.items[item];
|
14
|
+
});
|
15
|
+
console.log(storeItems);
|
16
|
+
});
|
17
|
+
steamClient.init();
|
7
18
|
}
|
8
19
|
|
9
20
|
main();
|