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


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Website URL




  1. Hello. I am doing this in this way actually: core.prototype.changeTradeToken = function (callback) { self.community._myProfile("/tradeoffers/newtradeurl", { "sessionid": self.community.getSessionID() }, (err, response, body) => { return callback(err/* || response.statusCode !== 200*/, body ? body.replace(/\"/g, '') : null); }, "tradeoffermanager"); } Would be nice to see this feature in the node-steamcommunity module
  2. How can I get my current steam profile settings, it is public or private? I know how to set to private/public - by: https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#profilesettingssettings-callback but is there method to grab only info about current setting?
  3. /home/taras/nodejs/node_modules/steamcommunity/index.js:375 var match = body.match(/https?:\/\/(www.)?steamcommunity.com\/tradeoffer\/new\/?\?partner=\d+(&|&)token=([a-zA-Z0-9-_]+)/); ^ TypeError: Cannot read property 'match' of undefined at _myProfile (/home/taras/nodejs/node_modules/steamcommunity/index.js:375:19) at SteamCommunity._checkHttpError (/home/taras/nodejs/node_modules/steamcommunity/components/http.js:90:3) at Request._callback (/home/taras/nodejs/node_modules/steamcommunity/components/http.js:50:61) at self.callback (/home/taras/nodejs/node_modules/request/request.js:188:22) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at Request.onRequestError (/home/taras/nodejs/node_modules/request/request.js:884:8) at emitOne (events.js:115:13) at ClientRequest.emit (events.js:210:7) at ClientRequest.onConnect (/home/taras/nodejs/node_modules/tunnel-agent/index.js:168:23)
  4. Hello , I try to get the price of each item, but I do not have time to do it, and I return the undefined . How i can get price of each items ? My code --- resolve it with promise close theme please
  5. I'm getting this error: With the code (after login, etc.): The weird part is that it works if I request any inventory besides the two bots I own. I'm thinking this might be a too many requests error? But it also doesn't work if I login to an alt/my main account and try to request the same inventory from a different account. Edit: I've also now gotten eresult 20. Looking at the corresponding errors these are "ServiceUnavailable" and "RemoteCallFailed", so it seems to be a steam error. Will see if this continues in a few hours. Edit 2: I actually can't even see their inventories in steam now, definitely a steam issue.
  6. this.community.inviteUserToGroup("steamID", "groupID", function(err){ console.log ("------------------------"); console.log(err); // HTTP error 400 console.log ("------------------------"); }); Sometime i recived err == null (success) . Thanks !
  7. Hey, I was wondering if there's any way to check for group comments every 10 minutes, then, if there's a new comment received, put it through a regex to prevent trading/spam, then, if it matches, ban the user. Thanks.
  8. hello, i need to get steam groups. i use method getSteamUser()and get this object community.getSteamUser(new SteamID(id.getSteamID64()), (err, user) => { if( err ) { console.log(err) } console.log(user) }) what is this ? can i get ID64 of users groups ? ---- i use this.group = userData.groups[0].group; in module CSSteamUser.js but can i get steam ID 64 using API?
  9. Hi, I recently read about this method (acceptConfirmationForObject). I have difficulties to understand how to use it instead startConfirmationChecker. Confirmation checker has multiple events like: receivedOfferChanged, sentOfferChanged, newOffer... right? Using only acceptConfirmationForObject, how can i get the previous events? Like accessing the offer object and his methods. Maybe i'm totally wrong and it is not supposed to stop using the previous events? I need some help here to understand what i need to use... Thank you for your time.
  10. Hello, I was working on a bot that manages Steam Groups. Basically, kicks user if his message contained one of the banned keywords. All of that is working just fine, the problem is with actually kicking users. When the script attempts to kick user it gets this error: Error: You do not have the required permissions to access that group feature. at SteamCommunity._checkCommunityError (C(SHD):\Bots\GM\node_modules\steamcommunity\components\http.js:122:9) at Request._callback (C(SHD):\Bots\GM\node_modules\steamcommunity\components\http.js:51:88) at Request.self.callback (C(SHD):\Bots\GM\node_modules\request\request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (C(SHD):\Bots\GM\node_modules\request\request.js:1163:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at Gunzip.<anonymous> (C(SHD):\Bots\GM\node_modules\request\request.js:1085:12) at Gunzip.g (events.js:292:16) Of course, I would assume that the group settings don't allow the bot to kick users, which is not true as I checked it & tried it out on 2 other groups as well, one of which was made by the bot and results were always the same. Just for the record: I tried using the Object method & Non-Object method and none of them worked, both gave exactly the same response. I find this very odd considering I used to use postGroupAnnouncement which worked perfectly fine. I'm guessing that once the group invitation update hit something changed, regardless I hope to hear an answer soon as this is very frustrating. Thanks in advance.
  11. Hello. i use method SteamCommunity.prototype.getInventoryHistory and all worked. In one moment this function return error: Error: Malformed page: no well-formed trade data found. Its error generated in line 66. I check and... xD
  12. /node_modules/log4js/lib/configuration.js:44 throw new Error( ^ Error: Problem with log4js configuration: ({ appenders: [ { type: 'console' }, { type: 'file', filename: 'logs/bot_undefined.log' } ] }) - must have a property "appenders" of type object. at tests.forEach (/home/Bot/node_modules/log4js/lib/configuration.js:44:15) at Array.forEach (<anonymous>) at Configuration.throwExceptionIf (/home/Bot/node_modules/log4js/lib/configuration.js:42:11) at new Configuration (/home/Bot/node_modules/log4js/lib/configuration.js:205:10) at Object.configure (/home/Bot/node_modules/log4js/lib/log4js.js:201:12) at Object.<anonymous> (/home/rsa-key-20171001/Bot/bot.js:18:8) at Module._compile (module.js:624:30) at Object.Module._extensions..js (module.js:635:10) at Module.load (module.js:545:32) at tryModuleLoad (module.js:508:12) i get this error when i try to run my bot. node v8. ubuntu 14. can anyone help me please ?
  13. /node_modules/steamcommunity/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5 const Hoek = require('hoek'); ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/home/Bot/node_modules/steamcommunity/node_modules/request/node_modules/hawk/lib/index.js:5:33) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) i get this error when i try to start my bot. can anyone help me please ?
  14. in class Bot: confirmTrade(offer_id) { return new Promise((resolve, reject) => { this.community.acceptConfirmationForObject(this.identity_secret, offer_id, (err) => { console.log(this.identity_secret); console.log(offer_id); if (!err) { return resolve("Successfully confirmed trade #" + offer_id); } else { return reject(err.message); } }); }); }Call: bot.confirmTrade(2541735824).then(resultAccepting => { console.log(resultAccepting); }).catch(errAccepting => { console.log(errAccepting); });I use SDA and get identity_secret from maFile. Don't know why code not work. I see identity_secret and offer_id in console, but i receiving "Could not find confirmation for object".
  15. Really simple question : Are we actually logon to steamcommunity.com ? Because im trying to allow openid. This is my code. However when i open up the body, it asks me to login request({url: 'http://backpack.tf/login'}, function (err, response, body) { if(err){ console.log(err) }else{ console.log(body) } })
  16. Hey, I try to get all Invites sent by a User with the getGroupHistory function, but the actor AND the user aren't the sender. So only the receiver of the invite can be obtained.. Greetings.
  17. Is it possible to post an hidden Announcement? community.postGroupAnnouncement("groupid", "test",function (err) { if (err) { console.log(err); }});
  18. community.profileSettings({ "image": aimage, "format": "jpg" }, function(err) { if (err) { console.log("Error to set profile"); console.log(err); } else { console.log("Profile avatar has been changed"); console.log(url); } }); It is writing thar "Profile avatar has been changed", but it's not like that
  19. hello, my website earlier worked, now with the same code when getting the inventory price error 429 is returned, I waited more than 3 - 5 hours but the error does not disappear, what could be the problem? Steam allowed 100,000 requests a day, the key could not be banned
  20. I was wondering if it is possible to use Passport/OpenID for login validation and then transfer the session over to use the node-steamcommunity function calls. Currently I want to be able to post comments on user profiles, and the following works: var SteamCommunity = require('steamcommunity'); var ReadLine = require('readline'); var fs = require('fs'); 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, authCode, twoFactorCode, captcha) { community.login({ "accountName": accountName, "password": password, "authCode": authCode, "twoFactorCode": twoFactorCode, "captcha": captcha }, function(err, sessionID, cookies, steamguard) { if(err) { if(err.message == 'SteamGuardMobile') { rl.question("Steam Authenticator Code: ", function(code) { doLogin(accountName, password, null, code); }); return; } 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, authCode, twoFactorCode, captchaInput); }); return; } console.log(err); process.exit(); return; } console.log("Logged on!"); community.getSteamUser('username', function(err, user){ if (err) { console.log(err); } else { user.comment('test comment', (err) => { if (err) { console.log(err); } else { console.log('comment posted successfully'); } }); } }); return; }); } But the doLogin() function will seem untrustworthy for end-users, so I would want to be able to use the standard "Sign In with Steam" as offered by Passport-Steam. Is there any way for me to do the login via Steam and then transfer those session details/cookies to use steamcommunity? Thanks for any help.
  21. How can i add phone number and link 2fa with one sms? Why in c# library i can and in node js no?
  22. Hello, after 1 or 2 weeks of working my bots have a strange bug with steam confirmation. It's not working at all. I tried to check body of getConfirmations method and there is not full body data, so it's like that Steam is cutting of the part of confirmation information. The screenshot of body is in attachments. It's the lowest part of body. Is it possible to fix it somehow? It's happened 4 times for me and there is no way to get items from bugged bots.
  • Create New...