Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3398
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Looks like one of the items you're trying to add is undefined. Perhaps someone's inventory is empty?
  2. If you have the mobile authenticator enabled, then logging in from a new device won't ever result in a trade cooldown. Otherwise, it will, but only for that device, meaning you can test it safely without any risk.
  3. Same problem as https://dev.doctormckay.com/topic/882-themescrowdays-does-not-work/
  4. Yes, they will work in other browsers. They expire rather quickly though (and immediately if you lose connection), so you won't get much use out of them.
  5. The problem was because you were missing a few arguments in your callback function. The names don't really matter, it's the order that matters.
  6. item.type You need to set a language in the constructor for that to be present.
  7. No. You should be able to track whatever you want yourself in the same place where you store the SteamUser object.
  8. steamID is a SteamID object. If you want the 64-bit ID, use steamID.getSteamID64() JavaScript can't precisely track numbers that are larger than 253. You need to wrap it in quotes to make it a string for comparison. Correct regarding == and !=.
  9. Are you confirming it if you're trying to take items from the bot?
  10. Whatever you stored your SteamUser instance in.
  11. 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 }); } }); });
  12. https://github.com/DoctorMcKay/node-steamcommunity/blob/master/components/users.js#L345
  13. Does the bot's Steam account own CS:GO?
  14. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#commentmessage-callback
  15. You are never giving TradeOfferManager login session cookies. You need something like: client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { throw err; } }); }); You also need to renew the web session when it expires.
  16. Please post in the correct board next time. I've moved your topic. An ID event is a special kind of event specific to steam-user where both the base event and the event suffixed with the SteamID of the relevant account are emitted. For example, if I sent you a chat message, both friendMessage and friendMessage#76561198006409530 would be emitted. Listening for the latter event is mostly useful for when you only care about one specific user. For example, you might hardcode a listener for friendMessage#yoursteamid to listen for admin commands (or perhaps something like on('friendMessage#' + config.adminSteamID)).
  17. It might be better for you to just learn how to work with Steam Guard first. If you're using email-based Steam Guard, then it will only prompt for a code once as long as you run it on the same machine (and you're using node-steam-user).
  18. Not presently. Why do you need to disable it?
  19. The next update to node-steamcommunity will give a different error message if your PIN is being rejected due to a rate-limit. There's currently no way to unlock your Family View session through node-steam-user.
×
×
  • Create New...