steamutils 1.0.77 → 1.0.79
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 +11 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -270,7 +270,7 @@ function SteamClient({
|
|
270
270
|
async function gamePlay() {
|
271
271
|
let ownedApps = null
|
272
272
|
while (!Array.isArray(ownedApps)) {
|
273
|
-
ownedApps = (await (new SteamUtils(cookie)).getDynamicStoreUserData())?.rgOwnedApps
|
273
|
+
ownedApps = (await (new SteamUtils(cookie || steamClient.webSession?.cookies)).getDynamicStoreUserData())?.rgOwnedApps
|
274
274
|
}
|
275
275
|
ownedApps.length = Math.min(ownedApps.length, 30)
|
276
276
|
_.remove(ownedApps, 730)
|
@@ -845,6 +845,16 @@ function SteamClient({
|
|
845
845
|
steamID, message
|
846
846
|
})
|
847
847
|
});
|
848
|
+
|
849
|
+
steamClient.on('playingState', async function (playing_blocked, playing_app) {
|
850
|
+
if(playing_app === 0){
|
851
|
+
playing_app = null
|
852
|
+
}
|
853
|
+
if (playing_blocked) {//true, false
|
854
|
+
console.log("Playing else where")
|
855
|
+
}
|
856
|
+
log('playingState', playing_blocked, playing_app);
|
857
|
+
});
|
848
858
|
}
|
849
859
|
|
850
860
|
function sendFriendTyping(steamId, callback) {
|