Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3631
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. You're right, the docs are wrong. I've fixed it. There is no way to retrieve the list of members in a chat room group, so I've added a method for how the Steam client does it.
  2. Not via JavaScript, at the moment.
  3. Confirmation polling (and therefore the newConfirmation event) is deprecated and won't be supported. But also no, you shouldn't use acceptConfirmationForObject with a confirmation ID. That won't work. You're supposed to use the offer ID. What I suspect is happening is that you're trading a bunch of items between bots. When you accept a confirmation for an outgoing offer in which both parties are losing items, it will be pretty quick. When you accept the confirmation for an incoming offer, the confirmation response won't come until all items have been moved. If you're moving a lot of items, this will take a while. There is no way to avoid this.
  4. That's not necessarily what that means. What exactly that error means is pretty much unknown. The takeaway here should be that you need to catch and handle errors, or else your stuff will crash.
  5. That's just Steam being Steam.
  6. If the code you posted in your original post is that entire file, then that specific client is not logged on. You instead created a new one.
  7. Once you join a chat room group, you're in it for good. There's no need to join it every time you log in. You can check which groups you're in using getGroups.
  8. Without seeing exactly how parseMessage is called, all I can suggest is that maybe you want that if to be if (!message || !message.startsWith('!'))
  9. I'm pinning this thread again because of numerous recent questions about changes made in v4.
  10. It was removed in v4 because it no longer works.
  11. As far as I'm aware, that's the only bbcode that works in chat. Everything else is a /command or an :emoji:.
  12. That SteamID (like all 64-bit SteamIDs) is too big to be represented as a JavaScript number. It's being rounded. Wrap it in quotes.
  13. You need to use bbcode: [mention=accountid]@name[/mention]
  14. Can you show the code you're using to try to join the group chat?
  15. 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]
  16. I see no reason why that shouldn't work. Are you perhaps trying to send items that you crafted in-game by the bot?
  17. Why would there be? You sent the offer, you should know that it was sent.
  18. 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.
  19. You probably want to use require("./login.json") and not just require("login.json").
  20. I've just added it in v3.40.0.
  21. If you're using a loginkey, don't send the password.
  22. 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.
  23. No, you can't pass an array to deleteItem. You'll need to call it for each item individually.
×
×
  • Create New...