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. hi, I am getting this error when i send offer via bot with items from bot inventory- There was an error sending your trade offer. Please try again later. (26) But when i send offer again via bot with item from other's inventory- it works perfectly fine. Please help me here as way of sending offer is same in both case except itemstogive and itemstoreceive value in offer.
  2. So im using offer.loadPartnetInventoy and im getting this error /root/node_modules/steam-tradeoffer-manager/node_modules/steamcommunity/components/users.js:292 callback(null, inventory, currency); ^ TypeError: callback is not a function at SteamCommunity.<anonymous> (/root/node_modules/steam-tradeoffer-manager/node_modules/steamcommunity/components/users.js:292:5) at Request._callback (/root/node_modules/steam-tradeoffer-manager/node_modules/steamcommunity/components/http.js:62:14) at Request.self.callback (/root/node_modules/request/request.js:198:22) at emitTwo (events.js:100:13) at Request.emit (events.js:185:7) at Request.<anonymous> (/root/node_modules/request/request.js:1035:10) at emitOne (events.js:95:20) at Request.emit (events.js:182:7) at IncomingMessage.<anonymous> (/root/node_modules/request/request.js:962:12) at emitNone (events.js:85:20)
  3. I am really bad at coding in nodejs because to me its confusing because i know to many languages but do you think i can get an example to work off of for checking this?
  4. Sometimes when I add too many items in one trade offer. When it is complete. pollFailure shows an err:Error: Data temporarily unavailable And normally it doesn't happen in those trade offers with few items. So is there a suggested number?
  5. So im trying to make a withdraw system on my site and i found out assetids change after the trade. So how can i get the new one to store in a database?
  6. Hi, I tried to mess around with the module but didn't manage to get the bot to only accept empty tradeoffers. I want the bot to automatically accept items but never give any. I'd also like the bot to auto-accept these empty trades where it can receive these items but let the regular 1:1, 2:1 etc tradeoffers pending. So that I can accept or decline them manually. Thank you very much for the help !
  7. Hey, we use the tradeoffer manager to let the user deposit on our system. For that we only let them deposit skins and don't take skins from our bot. In this case we check the offer and after accept it we use the getReceivedItems function to recheck the offer + read the item ids. in 70% of the cases all works fine. But on the 30% of cases even if we try it up to 180 times over 12 hours the receivedItems is still 0 But the offer is definitly accepted and the items which was in this trade are on our account. Since we checked it 180 times over 12 hours i don't think there is a error bec steam is down or something. Maybe you've got an idea guys?
  8. Hi all, I'm trying to setup node-steamcommunity to accept trade offers from my VPS. I just copied simple script from node-steam-tradeoffer-manager: steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("Steam login fail: " + err.message); process.exit(1); } fs.writeFile('steamguard.txt', steamguard); console.log("Logged into Steam"); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); }); steam.startConfirmationChecker(5000, config.sharedSecret); // Checks and accepts confirmations every 30 seconds }); It works on my local machine (windows 10) - bot is able to accept confirmations. I tried to run this on my VPS (debian) but I'm still getting error: I checked every issue on github, every post on forum but still don't know what is going on. On my VPS and local computer I have the same time. I tried to modify time on my vpsy with: " date -s "5 seconds ago"" and " date -s "5 seconds" but it doesn't work. VPS is located in France, my local computer is located in Poland. I also tried with dedicated server from online.de, problem still exists. I added: console.log(SteamTotp.time()); to my script and I see the same timestamp on both machines. Guys - could you help me?
  9. LoggedIn function will always false. The regular expression /steamcommunity\.com(\/(id|profiles)\/[^\/]+)\/?/ does not work in my case: https://steamcommunity.com/login/home/?goto=%2Fmy Sorry for my english. Translated by Gogle Translate/
  10. I am using node steam-user module in nodejs. When I am creating client using following code:- var client = new SteamUser({ promptSteamGuardCode: false }); I can't get into this function.It doesn't respond at all. client.on('loggedOn', function(detail) { console.log("Logged in with "); }); i have also tried on('debug') nothing works. please help. It works in my friends pc . OS-windows 7.
  11. Hello guys, im currently getting TradingPartners Inventory from Steams Json Api like this: http://steamcommunity.com/profiles/STEAMID/inventory/json/730/2 In gernal, there seems to be no AssetId which i need to add the Item to the trade offer. Some items contain the assetID in the "view Ingame" link so i could parse it. It looks like that: steam://rungame/730/SteamID/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D7116476999790771279 So there is a assetId i could use but im not even sure if its the real Items Asset Id of my TradePartners Inventory or just from an Steam CSGO Item to display it. Anyways, for Items like CSGO Cases, there is not even a a link which contains a assetId. How should i provide the Item Informations which TradeOffersManager need? Is there acually any way to use this Steam Api for the trades? Thanks!
  12. So I am using csgonetwork 1.4 script in my site, and also I am using the bot they give, I have every thing done as they said, and I am running the bot on my pc, I instaled python and node.js and configure the bot/sell.js file as in instructions, I am also using Git Bash to execute the sell.js file, after I exe the command "node sell.js" I got this text So far every thing is good, my bot goes online and even had the status "want to trade" but after a wile I got this errors in the promp Well I never change that files mentioned ther, and I am used to work with codes, I used to have php, html, mysql... etc... at the school, even that is not my area I know how to read and use the codes and change what I need, but never worked with node before, and js even I have class about that it was not my best.. so if someone could help me I would appreciate btw some times executing the "node sell.js" command I got this error, but this one is related to steam bad connection at least is what I think since every IP show in there are valve related, only 2 are my db IP(that I am using inseted of "localhost") but I will hide that one and give you the info.
  13. Hi, I'm a little confused about the uses of steam-user. I'm creating a trade site and for the bot I'm using steam-client/steam-user/etc without problems. But in the website, I need get the info of a logged users into Steam for example their avatars. Is a good idea use steam-user for this kind of functionalities or I need other package that wrap the Steam Web Api like steam-web? Thanks.
  14. Hello, i have a problem which happens not so often but it is very annoying. My jackpot bot tried to accept one offer and got this message "Error: Cannot load new trade data: Data temporarily unavailable", then tried to accept offer one more time and got another message "[Error: There was an error accepting this trade offer. Please try again later. (11)] eresult: 11". Offer was accepted but items didn't come into pot.
  15. Hello all, Not sure if I'm posting this in the right place or if anyone can help me but I'm trying to make a trading bot for the first time and I'm having trouble trying to send a trade request to my friend. Here's the code: var SteamUser = require('steam-user'); // The heart of the bot. We'll write the soul ourselves. var SteamTrade = require('steam-trade'); var username = 'test'; var password = 'test'; // We have to use application IDs in our requests--this is just a helper var appid = { TF2: 440, DOTA2: 570, CSGO: 730, Steam: 753 }; // We also have to know context IDs which are a bit tricker since they're undocumented. // For Steam, ID 1 is gifts and 6 is trading cards/emoticons/backgrounds // For all current Valve games the context ID is 2. var contextid = { TF2: 2, DOTA2: 2, CSGO: 2, Steam: 6 } // Initialize the Steam client and our trading library var client = new SteamUser(); //steam client var trade = new SteamTrade(); //steam trade // Sign into Steam client.logOn({ accountName: username, password: password }); client.on('loggedOn', function (details) { logger.info("Logged into Steam as " + client.steamID.getSteam3RenderedID()); }); client.on('error', function (e) { logger.error(e); process.exit(1); }); client.on('webSession', function(sessionid) { trade.sessionID = sessionid; client.webLogOn(function(cookie) { cookie.forEach(function(part) { trade.setCookie(part.trim()); }); logger.info('Logged into web'); // No longer appear offline client.setPersonaState(steam.EPersonaState.LookingToTrade); }); }); client.trade('STEAM_0:1:55683311');I'm using some outdated tutorials from google ( I'm on the right track with it but I can't work out what I'm doing wrong. I keep running the script but my friend isn't getting a trade request so I don't know what I'm missing from it. Any help would be appreciated. Thanks, Adam
  16. Hi, sometimes this happens: Offer #1248497400 changed: CreatedNeedsConfirmation -> Active /home/nodebots/node_modules/steam-user/components/web.js:9 if (this.steamID.type === SteamID.Type.ANON_USER) { ^ TypeError: Cannot read property 'type' of null at SteamUser.webLogOn (/home/nodebots/node_modules/steam-user/components/web.js:9:18) at tryOnTimeout (timers.js:224:11) at Timer.listOnTimeout (timers.js:198:5) Whats wrong?
  17. From time to time (I think when more time has elapsed) webLogOn won't work properly, i have to wait for about 3-4 minutes (with message HTTP error 401) to send trade offer. Example debug output: .................................................. info: Offer type receive----Error: HTTP error 401info: Resend because of error ----Error: HTTP error 401info: Offer type receive----Error: HTTP error 401info: Resend because of error ----Error: HTTP error 401info: Offer type receive----Error: HTTP error 401info: Resend because of error ----Error: HTTP error 401info: Offer type receive----Error: HTTP error 401info: Resend because of error ----Error: HTTP error 401info: Logged into Steam as xxxxxdebug: Got web sessiondebug: Trade offer cookies set. Got API Key: xxxxxx My send offer function: function sendOffer(offer, tradeToken, offerType, socketClient, bot, gameId) { offer.send('', tradeToken, function (err) { if (err) { bot.webLogOn(function (sessionID, newCookie) { getSteamAPIKey({ sessionID: sessionID, webCookie: newCookie }, function (err, APIKey) { offers.setup({ sessionID: sessionID, webCookie: newCookie, APIKey: APIKey }); }); }); logger.info('Offer type ' + offerType + '----' + err); if (err == 'Error: HTTP error 401' || err == 'Error: HTTP error 503') { logger.info('Resend because of error ----' + err); sendOffer(offer, tradeToken, offerType, socketClient, bot, gameId); } else { if (offerType == 'receive') { console.log('receive' + err); socketClient.emit('send-offer-error', err); } } } else { ....... });}
  18. Hello all! I have seen a similar question here, but to my understanding, it wasn't answered. https://dev.doctormckay.com/topic/251-cant-make-a-simple-login-due-to-steamguardmobile/ My code is as follows: var diff = 0; SteamTotp.getTimeOffset(function(err, d, l) { diff = d; }); console.log(diff); var code = SteamTotp.generateAuthCode(config.secret, diff); community.login({ "accountName": config.username, "password": config.password, "twoFactorCode": code, }, function(err){ if (err) { console.log(err); process.exit(1); } communityloggedin = true; console.log("Logged on to SteamCommunity with "+config.username); }); Unfortunately, I get the error [Error: SteamGuardMobile]. The answer to the other question linked above had an answer but I failed to see the fix. Thanks for your time, Spazhead
  19. Hello, how can i make it that the bot delince incomoing tradeoffers: with grey skins, blue skins, sounvier skins, cases and stickers automaticlly? Thank You with best regards Tirrex3
  20. Hey, when i try to send 2 offers with the same item (for example it's a csgo key) and if one offer is accepted, the other one gets a steam error "items now unavailable for trade". I have more than 2 csgo keys in my inventory. What should i do? Save assetids in mysql or something else?
  21. Hi, if I try to create an Account, it logs in, but doesn't do anything after that: var SteamUser = require('steam-user'); var steam_user = new SteamUser(); steam_user.logOn(); steam_user.createAccount("*username*", "*password*", "*email*", function(result,steamid){ console.log(result); console.log(steamid); }); I also tried logging in as an actual user, but then the createAccount function still doesn't do anything, what am I doing wrong? Thank you in advanced.
  22. When I use the example of your edit-group-announcement.js, then at the time of entering captcha I receive the address on the captcha , but there are no letters and numbers, how to fix it ? Thank you very much in advance. Sorry for my English.
  23. Hello. Is any possible to first login on steam account with this node-steamcommunity module, and next login on other website (sth like jackpot). Someone Could tell me what I should do?
  24. Hello, How can I add a friend if a friend request is received? I tried using addFriend(steamID), here's the code, am I doing something wrong? var SteamUser = require('steam-user'); var client = new SteamUser(); client.on("friend", function (steamID) { client.addFriend(steamID); } ); Thanks for the help! UKF
×
×
  • Create New...