Jump to content
McKay Development

setPersona to Online not working


mariodelta

Recommended Posts

Hello,

I'm trying to setup a Steam Bot.

After successful logging in I change the PersonaState to Online with 

client.setPersona(SteamUser.EPersonaState.Online);

Unfortunately, the Steam Profile is still offline without any errors in the console.

Can someone explain to me what's going wrong at this point?

Link to comment
Share on other sites

This is my code:

const TradeOfferManager = require('steam-tradeoffer-manager');
const SteamUser = require('steam-user');

let client = new SteamUser();

let loginOptions = {
    accountName: process.env.STEAM_USERNAME,
    password: process.env.STEAM_PASSWORD,
}

client.logOn(loginOptions);

client.on('loggedOn', function() {
    console.log('[BOT] Logged into Steam Account ' + client.steamID.getSteam3RenderedID());
    client.setPersona(SteamUser.EPersonaState.Online);
});

 

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...
×
×
  • Create New...