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. node-steamcommunity version 3.21.2, I checked your code, there is no changes in new version, the same error may occur
  2. I've been working on getting a bot that uses multiple accounts to add comments to a profile, it works sort of like the report bots that have been released recently. My only issue is that when you have Steam Guard disabled, you can't make comments through the API. If anyone could show me how to use the cookies correctly so I don't have to repeatedly use Steam Guard codes that would be great. Here is my code: var SteamCommunity = require('steamcommunity'); var ReadLine = require('readline'); var fs = require('fs'); var SteamID = require("steamid"); var banshee = 'steamid64'; var comments = ['a', 'b', 'c', 'd', 'e']; var rand = Math.floor(Math.random() * comments.length); var concat = comments[rand]; var community = new SteamCommunity(); var steamID = new SteamID(banshee); 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, authCode, captcha) { community.login({ "accountName": accountName, "password": password, "authCode": authCode, "captcha": captcha }, function(err, sessionID, cookies, steamguard) { if(err) { if(err.message == 'SteamGuard') { console.log("An email has been sent to your address at " + err.emaildomain); rl.question("Steam Guard Code: ", function(code) { doLogin(accountName, password, code); }); return; } if(err.message == 'CAPTCHA') { console.log(err.captchaurl); rl.question("CAPTCHA: ", function(captchaInput) { doLogin(accountName, password, null, captchaInput); }); return; } console.log(err); process.exit(); return; } console.log("Logged on!"); community.getSteamUser(steamID, function(err, user) { if(err) console.log(err); else { user.comment(concat, function(err) { if(err) console.log(err); }); console.log("Comment posted!"); setTimeout(function() { process.exit(); }, 2000); } }); }); }
  3. 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.
  4. Basicly the tittle says it all.Would it be possible to add this?If yes could the developer please add this? Thanks.
  5. 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"); }; }); }
  6. Hello, what should i do to voteup/rate screenshots via nodejs? Some hint? Where should i start, I am green
  7. 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?
  8. 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.
  9. 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 ?
  10. 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); });
  11. 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
  12. 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?
  13. 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?
  14. 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); });
  15. Hi is there a way to get accountinfos after login like in Node-Steam-User? Thanks for Help!
  16. 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.
  17. Hello. Is any option to get the list steamid of friends. Thanks.
  18. 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?
  19. 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/
  20. 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
  21. 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?
  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. 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); });
×
×
  • Create New...