steamutils 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SteamClient.js +49 -14
- 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
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
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)
|