steamutils 1.2.2 → 1.2.3

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 +49 -14
  2. package/package.json +1 -1
package/SteamClient.js CHANGED
@@ -1200,20 +1200,55 @@ function SteamClient({
1200
1200
  await sendHello()
1201
1201
 
1202
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
- })
1203
+ doSetInterval(function () {
1204
+ const maps = [
1205
+ "ar_baggage",
1206
+ "ar_dizzy",
1207
+ "ar_monastery",
1208
+ "ar_shoots",
1209
+ "cs_agency",
1210
+ "cs_assault",
1211
+ "cs_italy",
1212
+ "cs_militia",
1213
+ "cs_office",
1214
+ "de_ancient",
1215
+ "de_anubis",
1216
+ "de_bank",
1217
+ "de_boyard",
1218
+ "de_cache",
1219
+ "de_canals",
1220
+ "de_cbble",
1221
+ "de_chalice",
1222
+ "de_dust2",
1223
+ "de_inferno",
1224
+ "de_lake",
1225
+ "de_mirage",
1226
+ "de_nuke",
1227
+ "de_overpass",
1228
+ "de_safehouse",
1229
+ "de_shortnuke",
1230
+ "de_stmarc",
1231
+ "de_sugarcane",
1232
+ "de_train",
1233
+ "de_tuscan",
1234
+ "de_vertigo",
1235
+ "dz_ember",
1236
+ "dz_vineyard",
1237
+ "gd_cbble",
1238
+ "training1"
1239
+ ]
1240
+ steamClient.uploadRichPresence(730, {
1241
+ 'game:state': 'game',
1242
+ steam_display: '#display_GameKnownMapScore',
1243
+ connect: '+gcconnectG082AA752',
1244
+ version: CSGO_VER.toString(),
1245
+ 'game:mode': 'competitive',
1246
+ 'game:map': maps[Math.floor(Math.random() * maps.length)],
1247
+ 'game:server': 'kv',
1248
+ 'watch': _.random(1, 5).toString(),
1249
+ 'game:score': `[ ${_.random(0, 5)} : ${_.random(0, 5)} ]`,
1250
+ })
1251
+ }, [30000, 60000], 'uploadRichPresenceCSGO')
1217
1252
  }
1218
1253
 
1219
1254
  // await sleep(10000)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.02",
3
+ "version": "1.2.03",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.3.4",