Kulagin Posted March 11, 2019 Report Share Posted March 11, 2019 Why doesn't this work? const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity(); community.login({ "accountName": "accountName", "password": "password", }); community.loggedIn(() => { console.log("test"); }); Of course, I use proper login and password. And I get this when I run it: Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 11, 2019 Report Share Posted March 11, 2019 You need to supply a callback to login. And also loggedOn is always going to be false in that code (not that you're checking that, for some reason). Quote Link to comment Share on other sites More sharing options...
stefke Posted November 30, 2020 Report Share Posted November 30, 2020 (edited) I don't understand. How to supply callback? What to add? Edited November 30, 2020 by stefke Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 30, 2020 Report Share Posted November 30, 2020 3 hours ago, stefke said: I don't understand. How to supply callback? What to add? https://github.com/DoctorMcKay/node-steamcommunity/blob/master/examples/edit-group-announcement.js#L17 Quote Link to comment Share on other sites More sharing options...
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.