steamutils 1.2.73 → 1.2.75

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/SteamClient.js +10 -1
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -101,6 +101,8 @@ function SteamClient({
101
101
  let playingBlocked = null
102
102
  const richPresence = {}
103
103
  let sendMessageTimestamp = 0
104
+ let lastTimePartyRegister = 0
105
+ let lastTimePartySearch = 0
104
106
 
105
107
  const onAnyCallbacks = []
106
108
 
@@ -378,6 +380,7 @@ function SteamClient({
378
380
  launcher: 0,
379
381
  game_type: game_type === 'Competitive' ? 8 : 10
380
382
  }))
383
+ lastTimePartySearch = new Date().getTime()
381
384
  pushGCCallback('partySearch', resolve, timeout)
382
385
  })
383
386
  }
@@ -1387,7 +1390,7 @@ function SteamClient({
1387
1390
  }
1388
1391
 
1389
1392
  function _partyRegister(prime) {
1390
- log("partyRegister", prime);
1393
+ lastTimePartyRegister = new Date().getTime()
1391
1394
  steamClient.sendToGC(730, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Register, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Register, {
1392
1395
  // id : 0,
1393
1396
  ver: CSGO_VER,
@@ -1717,6 +1720,12 @@ function SteamClient({
1717
1720
  return steamClient.steamID.getSteamID64()
1718
1721
  } catch (e) {
1719
1722
  }
1723
+ },
1724
+ getLastTimePartyRegister(){
1725
+ return lastTimePartyRegister
1726
+ },
1727
+ getLastTimePartySearch(){
1728
+ return lastTimePartySearch
1720
1729
  }
1721
1730
  }
1722
1731
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.73",
3
+ "version": "1.2.75",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",