Jump to content
McKay Development
VenomZ75

setPersona appears to not work

Recommended Posts

Hi there, I'm using steam-user to try to make a bot, but I cannot get it to set it's status to online. Furthermore, is there a way to check if the login was successful as the loggedOn event appears to trigger even if I try entering bogus account details. Code is as follows:
 

const SteamUser = require ("steam-user");
const SteamTotp = require ("steam-totp");
const config = require("./config");

const client = new SteamUser();
const details = {
accountName: config.accountName,
password: config.password,
twoFactorCode: SteamTotp.generateAuthCode("redacted"),
rememberPassword: true
};

client.logOn(details);

client.on("loggedOn", () => {
console.log("signed in");
client.setPersona(1);
})
Edited by Dr. McKay
removed secret

Share this post


Link to post
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...