Jump to content
McKay Development

Search the Community

Showing results for tags 'Node.js'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hello, I tried absolutely everything to run this bot (Idle Games) nothing works... but never figured out where is the problem.. Can somebody help me?
  2. All trades made via node are not accepted, but do not appear on my phone's mobile authenticator. This was not happening for 2 months while the bot was working perfectly. setInterval(function() { App.Bot.steamWebLogon.webLogOn(function(webSessionID, cookies){ App.Bot.offers.setup({ 'sessionID': webSessionID, 'webCookie': cookies, 'APIKey': App.config.apiKey }); App.Bot.community.setCookies(cookies); App.Bot.community.startConfirmationChecker(10000, 'u8OxVY+GJ10IlZ9mlmcrkW/d4B4='); }); }, 1000 * 90); App.Bot.community.on('newConfirmation', function (confirmation ) { debug(confirmation); });
  3. Hi, After accepting any trades and the status change to Accepted, I call the offer.getReceivedItems to update my bot database but the actions array comes without any action. Is this normal? Because if after I accept the trade if I call the tradeOfferManager.loadInventory I get the actions array with some data (and sometimes the assetid changes, but it's not an issue to me). In particular, I just need the inspect in game link. Is this a normal thing or is it a bug?
  4. Greetings All, I was curious if anyone has tested the workings of BlueBird with Node-Steam-User? Do we know if it works currently? I would love to move away from callbacks, and into promises if it's an easy transition. Ideas?
  5. Prompt please a script by means of which it is possible to accept automatically empty offers (to whom I give nothing in exchange). I think a script will be very simple, but I don't understand it at all. It is necessary that the script scanned, for example time in 10 seconds, available offers and accepted them if nothing is necessary in exchange. Whether it is possible to make it by means of this bot? Two-factor authentication is, but whether it is necessary in this case for offers or only to log in?
  6. Im using this code: offer.getReceivedItems(true, function(err, items) { console.log(err); console.log(JSON.stringify(items)); });But response dont have float value, how can I get it?
  7. You can use multiple apps by providing an array of any mixture of the above formats. How would I do that? Like this? client.gamesPlayed({ "game_id": 440 }, { "game_id": 730 });
  8. Hi, I am using node-steamcommunity to login and then pass the cookies to node-steam-tradeoffer-manager. Whenever session expires, I relogin and pass the cookies to tradeoffer manager: community.on('sessionExpired', function(err) { community.login(logOnOptions,function(err,sessionID,cookies,steamguard) { if(err) { connectRetry-=1; if(connectRetry==0) { connectRetry=5; setTimeout(function(){logger.info("Couldn't reach server, will log in after 30 min");logIn();},1000*60*30); // try again after 30 minutes } } fs.writeFile(homeDir+'data/steamguard.txt', steamguard); logger.info("Logged into Steam"); connectRetry=5; //use steamcommunity cookies for tradeoffer-manager manager.setCookies(cookies, function(err) { if (err) { logger.error(err); process.exit(1); return; } logger.info("Got API key: " + manager.apiKey); }); community.chatLogon(); //Log on to the chat so that bot appears online community.startConfirmationChecker(10000,secrets.identity_secret); //poll every 10 seconds and confirm }); }); Sometimes I get the following error: info: Logged into Steam C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\index.js:212 cookies.forEach(function(cookie) { ^ TypeError: Cannot read property 'forEach' of undefined at SteamCommunity.setCookies (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\index.js:212:9) at TradeOfferManager.setCookies (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steam-tradeoffer-manager\lib\index.js:80:18) at C:\MyData\education\NodeJsTutorial\steam-trade-bot\tradingBot.js:344:11 at SteamCommunity.<anonymous> (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\index.js:128:5) at Request._callback (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\components\http.js:62:14) at Request.self.callback (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\node_modules\request\request.js:200:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (C:\MyData\education\NodeJsTutorial\steam-trade-bot\node_modules\steamcommunity\node_modules\request\request.js:1067:10) at emitOne (events.js:82:20) The error is coming on the line manager.setCookies(). Am I handling it in the wrong way or is this some bug? Thanks & Regards, Bheem
  9. After send a trade offer with my bot to pick some user items and after accepted, sometimes this event is called... manager.on('sentOfferChanged', function(offer) {Sometimes this event is called: manager.on('receivedOfferChanged', function(offer, oldState) {What is the difference? :/
  10. Hello, I would like to ask is there a way for me to send a trade offer to a certain player and follow up if the offer is accepted or declined ? If yes, can you please point me in some direction. Thank you in advance
  11. I am currently using the market_hash_name since it is always the same for the item (It's the english version of the market_hash). I've heard something about assetid aswell. I am not sure what to use. (By the way sorry for spamming this forum ) Adding on to that how do I accept trades as long as the itemsToReceive and itemsToGive are correct? I would like to save the itemToReceive and itemToGive that make the bot accept the trade in a trades.js file and add it to this if statement so that it works: if (offer.partner.getSteamID64() === '76561198127334975' | offer.itemsToGive.length === 0 /*|| itemsToReceive.market_hash_name and itemsToGive.market_hash_name from the offer equal those from the config*/) { offer.accept(); } So if anybody can help me with that it would be awesome
  12. The question is how do I 'filter' trade offers. So only accept the offer if the trade contains ... itemsToReceive and ... itemsToGive. I want to achieve this using another file containing those option. I don't know how I should store them (like as an array, array of objects etc). I think an array of objects could work. So I made this as sample file: module.exports = { trades: [{ "itemsToReceive": "Breakout Key", "itemsToGive": "Mac-10 | Neon Rider (Factory New)" }, { "itemsToReceive": "Falchion Key", "itemsToGive": "P250 | Sand Dune (Battle Scarred)" }] } //all values represent their market_hash_name's
  13. I use node-steamcommunity , steam-user , steam-trade-offer-manager modul. But sometime at night crash my steambot. Erorr: Error: read ETIMEDOUT\n at exports._errnoException (util.js:893:11)\n at TCP.onread (net.js:555:26)" What's this?
  14. Hi, I have tried to deposit 56 items using node bot, and on accepting Trade it returns only 29 Items as new items. I am using getReceivedItems() to get the Items with update assetid.Here is the link, https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback On accepting Trade, i have manageed "sentOfferChanged" event and with in that i have called getReceivedItems og TradeOffer objct to get updated information of Items in Trade as Below: tradeOffer.getReceivedItems(function(err,items){ }) I'm asking on behalf for my developer. any help appreciated!
  15. hello. for example i am creating inctance of TradeOfferManager and begin listening event on. how can i stop listening event .on or other event?
  16. Or do I have to remove it from that device and set it up via the bot like this: community.enableTwoFactor(function(err, response) { console.log(response); // So the shared secret, revocation code and the identity secret are in the response. How am I able to save it in a file instead of logging it and then saving it in a file? }); I hope there is a way of not having to remove my current device. My old phone broke so I have been waiting all week to be able to trade again since I linked my new phone.. x)
  17. As of December 2015, all users who are losing items in a trade must have the Steam Guard Mobile Authenticator enabled, or else the trade will be held for three fifteen days. It's also no longer possible to opt-out of trade confirmations. This means that effectively, all trading bots need a mobile authenticator and need to accept mobile trade confirmations. You don't need an actual physical phone to act as your mobile authenticator, however. Through the efforts of myself and others, you can emulate a mobile authenticator right from node.js, and also accept trade confirmations. Enabling a Mobile Authenticator The Steam Guard Mobile Authenticator provides two-factor authentication security (hereinafter "2FA") for your account, which is more secure than standard email-based Steam Guard. This is done using a "shared secret" which is known to both the Steam servers and to your authenticator. Both sides run this secret through an algorithm along with the current time, which produces a 5-character alphanumeric code. This code is only valid for 30 seconds, and can only be used once. Attempts to reuse a 2FA code (either through the Steam Client or by logging in on steamcommunity.com) will treat the code as incorrect and reject it. For this reason, you can't login more frequently than once in a 30-second period. Enabling 2FA is a three-step process. Link and verify a phone number with your Steam account. You can do this manually from your account page, or programmatically using node-steamstore. Call enableTwoFactor using either node-steam-user or node-steamcommunity. If successful, this will return an object containing a bunch of properties. You should save this entire object. You can call JSON.stringify on it safely to turn it into a string. You'll need the revocation_code in the future if you ever want to disable 2FA. At this stage, 2FA isn't enabled yet. Steam will send you an SMS containing a code which you'll need in step 3. Call finalizeTwoFactor using either node-steam-user or node-steamcommunity. You will need the value of the shared_secret property from the object returned in step 2, and the numeric activation code from your SMS. If successful, your Steam account now has 2FA.Logging in With a Mobile Authenticator If you have 2FA enabled, then for every login you will need to provide a twoFactorCode (unless you're logging in with node-steam-user using a loginKey). You can generate this code using node-steam-totp and your shared_secret which you obtained (and should have saved) when you enabled 2FA. Mobile-Confirming Trades You are now required to confirm all trades in which you lose items. If you don't have 2FA enabled, then these confirmations will go to your email and the trades will be held for fifteen days. If you do have 2FA enabled, then the confirmations must be accepted through Steam's mobile confirmation interface. You can also accept mobile confirmations through node.js. node-steam-tradeoffer-manager doesn't have anything built-in to accept mobile confirmations. This is because mobile confirmations encompass more than just trades -- market listings also require confirmation, and potentially other things in the future. node-steamcommunity can accept your confirmations for you. In order to accept mobile confirmations, you will need the identity_secret (not the shared_secret used for login) from when you enabled 2FA. The best way to do this is to call acceptConfirmationForObject right after each trade offer you send/accept or market listing you create.
  18. Hello, the title says it. How do I accept trades with mobile authenticator? I have looked on the Wiki but couldn't find it. Help is appreciated! x)
  19. Can I sell my items using method httpRequest to /sellitem with options? I tried but always failed, I know that automating market listings is against Steam ToS, but how it knows that my requests are automated?
  20. Hello, recently i use "getReceivedItems" to get the new assetids from new items in my inventory and save them in my database. Withdraws of the same items to users are very easy in that way (have not to search them in my inventory by name, ...) Most of the time when steam runs in good state i have no problems with that. But sometimes especially on the weekend some outgoing offers fail with state "InvalidItems" or error 26 on retry. Some items (not every from that invaliditems trade) arent anymore with that assetid from my database in my inventory. It looks like they have changed the id. Do you know that problem? is there a way to find out the new assetids without searching them by name in my inventory? My problem with searching by name is (for the repair of the ids), if there is much action on my bot it could happen that a search by name choose very new accepted items (before getReceivedItems write the assetids to my database -> using my database as blacklist which item ids are "free" in my inventory (to find for that missing ids the "new" id...
  21. Hello! Is there any function to get user nickname with steamid? Greetings, Turska
  22. Hello, Since the latest update, I receive "Unable to accept offer : Unknown state 2" when receiving a new offer. The trade does go through, it goes to accepted afterwards. But for some reason it always emits "Unknown state 2" aswell. Am I doing something wrong or is this a bug? manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID()); var steamid = offer.partner.getSteamID64(); offer.accept(function (err) { if (err) { console.log("Unable to accept offer: " + err.message); pusherTrigger.trigger('bot_status_ch', 'bot_status', { "message": "offline", "bot": BotID }); } else { steam.checkConfirmations(); console.log("Offer accepted"); } }); });
×
×
  • Create New...