steamutils 1.1.99 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +18 -0
- package/index.js +6 -0
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -1198,6 +1198,24 @@ function SteamClient({
|
|
1198
1198
|
await sleep(2000)
|
1199
1199
|
// steamClient.setPersona(SteamUser.EPersonaState.Online)
|
1200
1200
|
await sendHello()
|
1201
|
+
|
1202
|
+
if (apps.some(a => (a.game_id || a) == 730)) {
|
1203
|
+
await sleep(2000)
|
1204
|
+
steamClient.uploadRichPresence(730, {
|
1205
|
+
'game:state': 'game',
|
1206
|
+
steam_display: '#display_GameKnownMapScore',
|
1207
|
+
currentmap: '#gamemap_de_empire',
|
1208
|
+
connect: '+gcconnectG082AA752',
|
1209
|
+
version: CSGO_VER.toString(),
|
1210
|
+
'game:mode': 'competitive',
|
1211
|
+
'game:mapgroupname': 'mg_de_mirage',
|
1212
|
+
'game:map': 'de_mirage',
|
1213
|
+
'game:server': 'kv',
|
1214
|
+
'watch': '1',
|
1215
|
+
'game:score': "[ 3 : 6 ]",
|
1216
|
+
})
|
1217
|
+
}
|
1218
|
+
|
1201
1219
|
// await sleep(10000)
|
1202
1220
|
// self.steamUser.uploadRichPresence(730, {
|
1203
1221
|
// status: 'bussssss',
|
package/index.js
CHANGED
@@ -2706,6 +2706,9 @@ class SteamUser {
|
|
2706
2706
|
block: 1,
|
2707
2707
|
},
|
2708
2708
|
method: 'POST',
|
2709
|
+
headers: {
|
2710
|
+
'content-type': 'application/x-www-form-urlencoded'
|
2711
|
+
},
|
2709
2712
|
})
|
2710
2713
|
|
2711
2714
|
return data
|
@@ -2720,6 +2723,9 @@ class SteamUser {
|
|
2720
2723
|
block: 0,
|
2721
2724
|
},
|
2722
2725
|
method: 'POST',
|
2726
|
+
headers: {
|
2727
|
+
'content-type': 'application/x-www-form-urlencoded'
|
2728
|
+
},
|
2723
2729
|
})
|
2724
2730
|
|
2725
2731
|
return data
|