Jump to content
McKay Development

berkerm4n

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by berkerm4n

  1. 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');
    });
     
    I used this code but i get this error.
    c:\testbot>node index.js
    Logged into Steam
    c:\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)
×
×
  • Create New...