Hi.
Is there any way to connect to GC with an anonymous account? I tried to set the client.gamesPlayed to 730, but it doesn't seems to work. It doesn't enter the 'csgo.on' method.
My current code:
app.get('/api/retrieveFloat', (req, res) => {
const client = new SteamUser()
const csgo = new GlobalOffensive(client)
client.logOn()
client.on('loggedOn', (details) => {
console.log('Logged on: ' + client.steamID)
client.setPersona(SteamUser.EPersonaState.Online)
client.gamesPlayed(730, true)
csgo.on('connectedToGC', () => {
if (csgo.haveGCSession) {
console.log('Connected')
} else {
console.log('Not connected')
}
})
})
})