steamutils 1.1.99 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
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,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.1.99",
3
+ "version": "1.2.01",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",