
T1MOXA
-
Posts
35 -
Joined
-
Last visited
Reputation Activity
-
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
-
-
-
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
-
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); } }); -
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 }); } }); });