This commit is contained in:
Linrador 2025-06-09 13:39:57 +02:00
parent b2c00edfca
commit 9fc289be0b
7 changed files with 1149 additions and 62 deletions

View File

@ -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}`));

Binary file not shown.

Binary file not shown.

Binary file not shown.

1205
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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) => {