Jump to content
McKay Development

berkerm4n

Member
  • Posts

    2
  • Joined

  • Last visited

berkerm4n's Achievements

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