steamutils 1.3.74 → 1.3.76
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/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();
|