edit
This commit is contained in:
parent
b2c00edfca
commit
9fc289be0b
2
dist/app/downloadDemoFile.js
vendored
2
dist/app/downloadDemoFile.js
vendored
@ -48,7 +48,7 @@ function downloadWithHttps(url, dest, onProgress, maxRetries = 3, retryDelay = 3
|
||||
return;
|
||||
}
|
||||
if (attempt >= maxRetries) {
|
||||
console.log(`❌ Max. Versuche erreicht (${maxRetries}), Datei wird übersprungen`);
|
||||
console.log(`❌ Max. Versuche erreicht (${maxRetries}), Datei wird übersprungen (HTTP ${res.statusCode})`);
|
||||
return resolve(false);
|
||||
}
|
||||
return reject(new Error(`HTTP ${res.statusCode}`));
|
||||
|
||||
BIN
dist/cs2-demo-downloader-linux
vendored
BIN
dist/cs2-demo-downloader-linux
vendored
Binary file not shown.
BIN
dist/cs2-demo-downloader-macos
vendored
BIN
dist/cs2-demo-downloader-macos
vendored
Binary file not shown.
BIN
dist/cs2-demo-downloader-win.exe
vendored
BIN
dist/cs2-demo-downloader-win.exe
vendored
Binary file not shown.
1205
package-lock.json
generated
1205
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,7 @@
|
||||
"main": "index.js",
|
||||
"bin": "dist/main.js",
|
||||
"scripts": {
|
||||
"start": "node ./dist/main.js --username=ironiebot --password=QGEgGxaQoIFz16rDvMcO",
|
||||
"build": "tsc && pkg . --targets node18-win-x64,node18-linux-x64,node18-macos-x64 --out-path dist"
|
||||
},
|
||||
"keywords": [],
|
||||
@ -18,6 +19,7 @@
|
||||
"dotenv": "^16.5.0",
|
||||
"globaloffensive": "^3.2.0",
|
||||
"lzma": "^2.3.2",
|
||||
"pkg": "^5.8.1",
|
||||
"steam-session": "^1.9.3",
|
||||
"steam-totp": "^2.1.2",
|
||||
"steam-user": "^5.2.1",
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { decodeMatchShareCode } from 'csgo-sharecode';
|
||||
import { createSteamSession } from './steamSession';
|
||||
import { SteamSession } from '../types/types';
|
||||
|
||||
export async function fetchMatchFromShareCode(
|
||||
@ -8,6 +7,7 @@ export async function fetchMatchFromShareCode(
|
||||
): Promise<any> {
|
||||
const { csgo } = session;
|
||||
const decoded = decodeMatchShareCode(shareCode);
|
||||
console.log(decoded);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
csgo.once('matchList', (matches) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user