DoctorMcKay/node-globaloffensive

Neither `requestRecentGames` nor `requestLiveGameForUser` works

osztenkurden opened this issue · 1 comments

matchList is not fired, when doing requestPlayersProfile or requestLiveGameForUser:

const wait = (ms: number) => new Promise((r) => setTimeout(r, ms));

csgo.on("matchList", (matches) => {
    console.log(matches); // This never fires
});

csgo.on("connectedToGC", async () => {
    await wait(2000);
    console.log("GC CONNECTED, REQUESTING", 'STEAM_ID_OF_AN_ACCOUNT'); // This fires just fine
    csgo.requestRecentGames("STEAM_ID_OF_AN_ACCOUNT");
    csgo.requestLiveGameForUser("STEAM_ID_OF_AN_ACCOUNT");
});

Account I'm checking is on a friendlist of the account I'm connecting through the node

I just saw that Valve probably deprecated / closed those. :c