Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steamcommunity'.

  • 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. To my understanding Steam's api's Inventory has a IP rate limit. I read this post https://dev.doctormckay.com/topic/203-using-loaduserinventory-on-1-bot/?hl=inventory and I'm not understanding how making 100 inventory calls/min results in the need for only 5 ip's? Each IP being able to make 2 requests per minute results in a maximum of 10 inventory calls. Sorry if this is obvious, I just don't understand it.
  2. Hello, i wanted add comment on steam profile, what's wrong? var SteamCommunity = require('../index.js'); var ReadLine = require('readline'); var fs = require('fs'); var SteamID = require('steamid'); var CEconItem = require('../classes/CEconItem.js'); var community = new SteamCommunity(); var rl = ReadLine.createInterface({ "input": process.stdin, "output": process.stdout }); rl.question("Username: ", function(accountName) { rl.question("Password: ", function(password) { doLogin(accountName, password); }); }); function doLogin(accountName, password, captcha) { community.login({ "accountName": accountName, "password": password, "captcha": captcha }, function(err, sessionID, cookies) { if(err) { if(err.message == 'CAPTCHA') { console.log(err.captchaurl); rl.question("CAPTCHA: ", function(captchaInput) { doLogin(accountName, password, captchaInput); }); return; } console.log(err); process.exit(); return; } console.log("Logged on!"); SteamCommunity.prototype.postUserComment = function(userID, message, callback) { if(typeof userID === 'string') { userID = new SteamID(userID); } var self = this; this.httpRequestPost({ "uri": "https://steamcommunity.com/comment/Profile/post/76561198015482752", "form": { "comment": message, "count": 6, "sessionid": this.getSessionID() }, "json": true }, function(err, response, body) { if(!callback) { return; } if (err) { callback(err); return; } if(body.success) { callback(null); } else if(body.error) { callback(new Error(body.error)); } else { callback(new Error("Unknown error")); } }, "steamcommunity"); }; }); }
  3. Hello, what should i do to voteup/rate screenshots via nodejs? Some hint? Where should i start, I am green
  4. How to get all CSGO items like csgostash.com? http://api.steampowered.com/IEconItems_730/GetSchema/v2/?key=APIKEY&format=json The GetSchema does not have a name and description for each item. I doubt that the csgostash.com adds each new item manually. Is there a way to obtain all automatically?
  5. If i pass a node-steamcommunity instance in the constructor of the trade offer manager and then i set the cookies of the manager, does the community cookies are also set, or do i need to call setCookies for the community too ?
  6. Hi guys! I do not know and where to start. I want to make steam bot. On the Internet, many libraries for this, but I settled on (this) because there is someone to ask. What I have in stock: Steam account, which can make and receive exchange Look like that's it. Questions: To begin, I just want to make the authorization, as I realize it is from my computer via a bot. How can I do it? So as for Steam authentication requests from the phone key. Please help experts!
  7. Hey, I'm trying to make an "confirmation system". After trade is sent, you can call it, with trade id, so it would be confirmed. Is there already something like that or not? If it's not possible to do something like that, okay. If it's not possible (the tradeid confirming, then) -> After logging in I have that line: community.startConfirmationChecker(10000, account.identity_secret);But it doesn't seem to work for me.
  8. Hey, I'm trying to login to steam, but I keep getting an error "Error: SteamGuardMobile". My time is right, shared secret is right as well, What could be wrong? SteamTotp.getTimeOffset(function(err, offset, latency) { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset); account.auth = false; logger.debug(account); community.login(account, login); });
  9. Hello I am having other error. Code: community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); client.webLogOn(); }); And error in console: client is not defined. How to call weblogon function please? Thanks
  10. Hello there, thanks for awesome node.js module! I want to implement inter-bot trade offers communication. So bots can automatically send items to each other. Therefore i need to store trade offer credentials of bots, to send them trade offers and to validate incoming trade offers through "accountid_other" field. It does not seems that login flow returns this details, so how can i get em?
  11. Hello. I'm try login to my account via node-steamcommunity. Login process: DB Connected -> We got account info -> Sucesfully auth -> error: Cant make apikey -> error: http error 429. What i should to do?
  12. Hi is there a way to get accountinfos after login like in Node-Steam-User? Thanks for Help!
  13. I have this error everytime after trade confirmation What i did wrong? My code: let time_conf = Math.floor(Date.now() / 1000); let key_conf = SteamTotp.getConfirmationKey(this.identity_secret, time_conf, "conf"); this.community.getConfirmations(time_conf, key_conf, (err, confirmations) => { setTimeout(() => { let time = Math.floor(Date.now() / 1000); let key = SteamTotp.getConfirmationKey(this.identity_secret, time, "accept"); confirmations[0].respond(time, key, true, (err) => { console.log('err', err); }); }, 1001); });
  14. HI, i trying to write a bot manager for trading, i try to get my secrect id and shared code by using this code: var SteamCommunity = require('steamcommunity'); var community = new SteamCommunity(); community.login({ "accountName": "MyAccountName", "password": "MyPassword", "twoFactorCode": "6 char code that i receive from steam guard mobile" }, function (err, sessionId, cookies, steamGuard, token) { if (err) { console.log(err); } else { community.loggedIn(function (err, result) { if (err) { console.log("loggedIn error: ", err); } else { community.enableTwoFactor(function (err, response) { if (err) { console.log("twoFactor Error: ", err); } else { console.log("response", response); community.finalizeTwoFactor(response.shared_secret, test, function(err, result){ if("finalizeTwoFactor Error: ", err) { } else { console.log("finalizeTwoFactor Success: ", result); } }); } }); } }); } }); I enabled my bot account with steam guard mobile, and verify the number, but when i try to start that code i get this error: twoFactor Error: { [Error: Error 29] eresult: 29 } what did i miss here? i try to search in this forum and google but i can't find my answer.
  15. Hello. Is any option to get the list steamid of friends. Thanks.
  16. 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?
  17. 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/
  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. 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.
  20. 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?
  21. 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); });
  22. 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
  23. 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)
×
×
  • Create New...