Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Can you show the code you're using to try to join the group chat?
  2. There's no reason you shouldn't be able to use the number with getClanChatGroupInfo. That is your group's 64-bit SteamID. The ID in your group edit page is the accountid portion of your group's SteamID. You can turn it into a full SteamID by putting it in this string: "[g:1:x]" For example, the Valve group's accountid is 4, so we get https://steamcommunity.com/gid/[g:1:4]
  3. I see no reason why that shouldn't work. Are you perhaps trying to send items that you crafted in-game by the bot?
  4. Why would there be? You sent the offer, you should know that it was sent.
  5. Of course that isn't going to work. No incoming trades that you can see will ever be in state 9 (CreatedNeedsConfirmation), so newOffer and receivedOfferChanged aren't going to emit with that state. Trades that you send that require confirmation are created in state 9, so sentOfferChanged isn't going to emit with that state because a trade can't change into state 9.
  6. You probably want to use require("./login.json") and not just require("login.json").
  7. I've just added it in v3.40.0.
  8. If you're using a loginkey, don't send the password.
  9. If it's a trade you sent but haven't confirmed yet, that's CreatedNeedsConfirmation. The other party can't see it. If it's a trade you received that you accepted but haven't confirmed yet, it's still Active. The confirmationMethod property is how you can tell if an incoming trade has an outstanding confirmation.
  10. No, you can't pass an array to deleteItem. You'll need to call it for each item individually.
  11. Setting snooze worked fine for me. If you're not in-game, you will appear as "Away" in the newest Steam client, with a "ZZZ" icon. If you're in-game, just the "ZZZ" icon will appear. If you want a custom in-game string, make the string the first entry in your array that you pass to gamesPlayed.
  12. You probably want to use steam.uploadAvatar and not community.uploadAvatar. Also, attach a callback. Also also, don't use the auto-confirmation checker.
  13. That's correct. That's incorrect. They will still be auto-canceled per your options.
  14. There is no one correct way. I have traditionally started an HTTP server in the Node process and called that from external processes, when needed.
  15. You exceeded a rate-limit.
  16. You should be able to use it on store.steampowered.com. When you use setCookies in SteamCommunity, it'll set them for steamcommunity.com, store.steampowered.com, and help.steampowered.com.
  17. https://dev.doctormckay.com/topic/2102-acceptconfirmationforobject-must-be-logged-in-before-trying-to-do-anything-with-confirmations/
  18. You should use the WebAPI to get games owned by a user.
  19. You're not using this properly. In JavaScript, this references the parent object of the method at call-time. So for example: function exampleMethod() { console.log(this.name); } let obj1 = {"name": "obj1"}; let obj2 = {"name": "obj2"}; obj1.example = exampleMethod; obj2.example = exampleMethod; obj1.example(); // "obj1" because the "parent" to this call is obj1 obj2.example(); // "obj2" because the "parent" to this call is obj2 let example = obj1.example; example(); // undefined because there is no "parent" to example() in this call So when you do getInventoryContents(foo, bar, this.createOffer), when the module receives the callback, it sees this: TradeOfferManager.prototype.getInventoryContents(blah, callback) { // do stuff callback(); // no parent! so "this" will not be what you expect }; What you should do instead is: getInventoryContents(foo, bar, this.createOffer.bind(this)). Using the bind method "binds" the value of this before call-time.
  20. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#acceptconfirmationforobjectidentitysecret-objectid-callback
  21. Check the x-eresult header.
  22. receivedOfferChanged or sentOfferChanged will be emitted with the offer's new state being Accepted when the trade comes out of escrow.
×
×
  • Create New...