-
Posts
3545 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Question Getting Market Price (Async Function)
Dr. McKay replied to Meshi8's topic in node-steam-tradeoffer-manager
Yes, that's returning a promise. You should put your code inside of the callback function and call resolve() once you're done. -
Can you please give v4.4.4 a shot and let me know if it improves anything?
-
Have you tried getChatMessageHistory?
-
Question How many requests (per second) to Steam Market?
Dr. McKay replied to roughnecks's topic in General
As I recall, like 20 requests inside of 5 minutes or so will get you blocked. Using the endpoint to get a single price is really not a good way to go about doing things. -
Question Getting Market Price (Async Function)
Dr. McKay replied to Meshi8's topic in node-steam-tradeoffer-manager
ConvertToKeys2 is not an async function (nor does it return a Promise), so that's why await isn't awaiting anything. -
Question Constantly prompted with Steam Guard App Code
Dr. McKay replied to ktfo's topic in node-steam-user
I don't see anything obvious in your code that would cause that. Though I do notice that if this is your entire code, you don't need to use SteamCommunity or web sessions at all. You aren't making any authenticated requests to steamcommunity.com. Could you add this and see what happens before you get prompted for a code? client.on('debug', (msg) => console.log('[debug] ' + msg)); -
Question [v4] Access purchaseResultDetails on key redeeming error
Dr. McKay replied to Catzilla's topic in node-steam-user
Promise limitations prevent any arguments besides err from being sent to the callback if an error occurred. If you update to v4.4.3, you'll be able to access this data via the Error object instead, using err.purchaseResultDetails and err.packageList. -
Discussion Error: Not Logged In at SteamCommunity._checkHttpErro
Dr. McKay replied to mrlon's topic in node-steamcommunity
You should never call emit on a SteamUser instance yourself. Events are emitted by the module. -
Discussion Error: Not Logged In at SteamCommunity._checkHttpErro
Dr. McKay replied to mrlon's topic in node-steamcommunity
That code looks correct. You're obviously doing something else wrong, but I can't tell you what without seeing more code (and a full stack trace). -
Question Send a text after accepted trade
Dr. McKay replied to Matii's topic in node-steam-tradeoffer-manager
Yes. -
Question Trade Notifications Messages don't get cleared when...
Dr. McKay replied to roughnecks's topic in node-steam-user
No, there is no way to suppress those messages from coming in when you receive a trade offer. Eventually I'm sure I'll add a method you can use to mark those as read, but for the time being there's no way to clear them in a bot. -
Discussion Error: Not Logged In at SteamCommunity._checkHttpErro
Dr. McKay replied to mrlon's topic in node-steamcommunity
You aren't logged into Steam Community until webSession fires. -
Discussion Error: Not Logged In at SteamCommunity._checkHttpErro
Dr. McKay replied to mrlon's topic in node-steamcommunity
I'm not sure whether this would cause the issue you're describing or not, but is your Steam profile set up yet? I only ask due to the name of your function. -
Question Send a text after accepted trade
Dr. McKay replied to Matii's topic in node-steam-tradeoffer-manager
Your call to chatMessage is correct (although deprecated; you should check out the docs for the new SteamChatRoomClient), but your comparison is wrong. It should be: if (OFFER.state == TradeOfferManager.ETradeOfferState.Accepted) -
Yes, steam-client is obsolete with v4. It's built into steam-user now. And user.setHttpProxy isn't going to work. You should use: let user = new SteamUser({ debug: true, singleSentryfile: false, autoRelogin: true, dataDirectory: '/files/clients', httpProxy: proxyUrl });
-
Question Changing your name to gold using this tool?
Dr. McKay replied to Vas's topic in node-steam-user
Don't bother, Valve fixed that exploit long ago. -
Question Getting user's name on a sent trade
Dr. McKay replied to Meshi8's topic in node-steam-tradeoffer-manager
What error? -
BREAKING CHANGES: steam-user v4 now available on npm
Dr. McKay replied to Dr. McKay's topic in node-steam-user
Assuming this is happening like you describe, that would be a problem with Steam, not with this module. But what I suspect is happening is that you're logged into that same account with another bot (or with the Steam client) and its persona state is away. If any logged-on session is in an online state (anything but invisible/offline), the account will show up as that state. -
That error means you're calling addMyItem/addTheirItem with an undefined argument. It doesn't matter which inventory you check first.
-
Yes, that means your time is correct. So your secret isn't.
-
inventory.filter is always going to return every item that matches the filter. If you only want to send some specific amount of metal, you should use slice, for example offer.addMyItems(ref.slice(0, 3)) to send 3.
-
They weren't; I've just joined them to one.
-
If your clock is wrong and you can't fix it, you'll need to use getTimeOffset and account for it.