mariodelta Posted October 8, 2024 Report Posted October 8, 2024 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? Quote
Dr. McKay Posted October 9, 2024 Report Posted October 9, 2024 Please show the code around where you're calling setPersona. Quote
mariodelta Posted October 9, 2024 Author Report Posted October 9, 2024 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); }); Quote
Dr. McKay Posted October 9, 2024 Report Posted October 9, 2024 That should work fine. Make sure your profile isn't private, I guess. Quote
mariodelta Posted October 9, 2024 Author Report Posted October 9, 2024 The whole profile is set to public. Do you need to deposit $5 dollars before you can interact with the API or something? Quote
mariodelta Posted October 18, 2024 Author Report Posted October 18, 2024 Anyone an idea? Problem is unfortunately still not resolved yet. Quote
Recommended Posts
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.