Jump to content
McKay Development

T1MOXA

Member
  • Posts

    35
  • Joined

  • Last visited

Reputation Activity

  1. Like
    T1MOXA got a reaction from Dr. McKay in Error: Already logged on, cannot log on again   
    I so understand I need to remove "client.logOn" so as there is "autoRelogin" option
  2. Like
    T1MOXA reacted to Dr. McKay in How gamesPlayed works ?   
    I don't know, sorry.
  3. Like
    T1MOXA reacted to Dr. McKay in User data caching   
    I don't believe so.
  4. Like
    T1MOXA reacted to timgfx in How to get discussions from group ?   
    I don't think that's implemented. You could scrape instead. I suggest using the node modules request and cheerio
  5. Like
    T1MOXA reacted to speicher in not confirm trade after running a while   
    ok, that should work based on your wiki.

    community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); if (client.steamID) { client.webLogOn(); } else { client.logOn(logon_details); } });
  6. Like
    T1MOXA reacted to Dr. McKay in Cannot read property 'player_name' of undefined   
    You're overwriting the value of steamID in your outer loop, which changes the context of the closure. This is confusing, I know. Just do this and it should work:
    bot.on('friendsList', function() { Object.keys(bot.myFriends).forEach(function(steamID) { if(bot.myFriends[steamID] === 2) { bot.getPersonas([steamID], function(getName) { var friendName = getName[steamID].player_name; //Some code }); } }); });
×
×
  • Create New...