berkerm4n Posted September 26, 2017 Report Share Posted September 26, 2017 community.uploadAvatar({"image": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c1/c15b424d91295560708c526a20c4e2fab306edab_full.jpg","format": "jpg"})i tried it but it doesn't work. Anyone can help me please. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 26, 2017 Report Share Posted September 26, 2017 You should provide the arguments as arguments, not as an object. Quote Link to comment Share on other sites More sharing options...
berkerm4n Posted September 27, 2017 Author Report Share Posted September 27, 2017 You should provide the arguments as arguments, not as an object.const SteamUser = require('steam-user');const SteamTotp = require('steam-totp');const SteamCommunity = require('steamcommunity');const community = new SteamCommunity();const client = new SteamUser(); const logOnOptions = {accountName: 'myid',password: 'mypw',twoFactorCode: SteamTotp.generateAuthCode('mysharedsecret')}; client.logOn(logOnOptions); client.on('loggedOn', () => {console.log('Logged into Steam');community.uploadAvatar('http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c1/c15b424d91295560708c526a20c4e2fab306edab_full.jpg');}); I used this code but i get this error.c:\testbot>node index.jsLogged into Steamc:\testbot\node_modules\steamcommunity\components\profile.js:312 "sId": self.steamID.getSteamID64(), ^ TypeError: Cannot read property 'getSteamID64' of undefined at doUpload (c:\testbot\node_modules\steamcommunity\components\profile.js:312:24) at SteamCommunity.<anonymous> (c:\testbot\node_modules\steamcommunity\components\profile.js:243:4) at Request._callback (c:\testbot\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (c:\testbot\node_modules\request\request.js:186:22) at emitTwo (events.js:125:13) at Request.emit (events.js:213:7) at Request.<anonymous> (c:\testbot\node_modules\request\request.js:1163:10) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at IncomingMessage.<anonymous> (c:\testbot\node_modules\request\request.js:1085:12) Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 27, 2017 Report Share Posted September 27, 2017 You aren't logging into node-steamcommunity. Quote Link to comment Share on other sites More sharing options...
SpiTik Posted July 31, 2018 Report Share Posted July 31, 2018 client.on('webSession', (sessionid, cookies) => { community.setCookies(cookies), community.startConfirmationChecker(10000);}); 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.