Jump to content
McKay Development

client.gamesPlayed


CellSplitter
 Share

Recommended Posts

Hey, after 2 years i will rewake my old +REP Profile Commentbot. Runs good, but if i look on Bots Profile Page, it shows only that he is online and not in a non Steam Game.

 

const SteamUser = require('steam-user');
const SteamCommunity = require('steamcommunity');
const SteamTotp = require('steam-totp');
const TradeOfferManager = require('steam-tradeoffer-manager');
const fs = require('fs');
const config = require('./config.json');

const sleep = (milliseconds) => {
    return new Promise(resolve => setTimeout(resolve, milliseconds))
}

const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeOfferManager({
    steam: client,
    community: community,
    language: 'en'
});

const logOnOptions = {
    accountName: config.username,
    password: config.password,
    twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)
};

client.logOn(logOnOptions);

client.on("loggedOn", function() {
    client.getPersonas([client.steamID], (personas) => {
        console.log("Logged in as " + personas[client.steamID].player_name + " [ " + client.steamID + " ].");
        client.setPersona(SteamUser.Steam.EPersonaState.Online);
        client.gamesPlayed("Profile Comment Service");
    });
});

client.on('webSession', (sessionid, cookies) => {
    manager.setCookies(cookies);
    community.setCookies(cookies);
});

 

If i look in my Steam App (Android) and on Steam App (Windows) the Bot is still shows only online.

If i look in my Browser like Chrome or Firefox the Bot plays Custom Game named "Profile Comment Service" thats right


Is there over the 2 years anything new that i must do to get this working again?

Edited by CellSplitter
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...