steamutils 1.1.71 → 1.1.73
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2360,6 +2360,7 @@ class SteamUser {
|
|
2360
2360
|
matchInfo.map = text.substringAfter('Competitive ')
|
2361
2361
|
} else if (text.endsWith(' GMT')) {
|
2362
2362
|
matchInfo.time = text
|
2363
|
+
matchInfo.timestamp = moment.utc(text.replace('GMT','').trim(),'YYYY-MM-DD HH:mm:ss', true).valueOf()
|
2363
2364
|
} else if (text.startsWith('Wait Time: ')) {
|
2364
2365
|
matchInfo.waitTime = text.substringAfter('Wait Time: ')
|
2365
2366
|
} else if (text.startsWith('Match Duration: ')) {
|
@@ -2454,7 +2455,7 @@ class SteamUser {
|
|
2454
2455
|
p.teamScore = p.team === 'ct' ? ctScore : tScore
|
2455
2456
|
})
|
2456
2457
|
|
2457
|
-
const matchIDs = [matchInfo.map, matchInfo.time, matchInfo.
|
2458
|
+
const matchIDs = [matchInfo.map, matchInfo.time, matchInfo.duration]
|
2458
2459
|
const nonHashMatchID = matchIDs.join('').replaceAll(/[^a-zA-Z0-9]/gi, '')
|
2459
2460
|
const matchID = sha256(nonHashMatchID).toString()
|
2460
2461
|
|