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. 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.
  2. this.community.inviteUserToGroup("steamID", "groupID", function(err){ console.log ("------------------------"); console.log(err); // HTTP error 400 console.log ("------------------------"); }); Sometime i recived err == null (success) . Thanks !
  3. 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.
  4. 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
  5. /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 ?
  6. /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 ?
  7. 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) } })
  8. 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".
  9. community.uploadAvatar({ "image": "http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c1/c15b424d91295560708c526a20c4e2fab306edab_full.jpg", "format": "jpg" }) i tried it but it doesn't work. Anyone can help me please.
  10. 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.
  11. Is it possible to post an hidden Announcement? community.postGroupAnnouncement("groupid", "test",function (err) { if (err) { console.log(err); }});
  12. 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
  13. 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
  14. 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
  15. community.httpRequestPost({ "uri": "https://steamcommunity.com/profiles/" + client.steamID.getSteamID64() + "/ajaxsetshowcaseconfig", "form": { "appid": 730, "item_contextid": 2, "item_assetid": 11692952310, "customization_type": 4, "slot": 0, "sessionid": sessionID }, "json": true }, (err, response, body) => { console.log("err:", err); console.log("body:", body); }, "steamcommunity"); I'm trying to play a little with the profile showcases, the idea is to make a change in the item that are showed in a desired slot, but for some reason it doesn't work, all the data passed in the POST are definetely right, you guys have an idea on how to make it work?
  16. 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.
  17. How can i add phone number and link 2fa with one sms? Why in c# library i can and in node js no?
  18. 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.
  19. Hi. I have stored session into a file, I am trying to restore it using setCookies function but loggedIn function returns false, With heder location https://steamcommunity.com/login/home/?goto=%2Fmy fs.readFile('/cookies.txt', 'utf8', function (err,data) { if (err) { return console.log(err); } console.log(JSON.parse(data)) // array of cookies from steamcommunity.login function steamCommunity.setCookies(JSON.parse(data)); steamCommunity.loggedIn(function (error, logged_in){ console.log(logged_in) // === false; console.log(error) // === null }); });
  20. Happened last night. Should report it as bug or it was some random error? I have no clue of what triggered that, since that account doesn't have any friends that sends chat messages, and I wasn't online. PS: Sorry for bad english
  21. How i can fill details with a variable? For example: var log = "example1"; var pasw = "example2"; var details = { "accountName": log, "password": pasw,}; When i try to run it shows me that "accountName": log, ^ ReferenceError: log is not defined
  22. How can I get WebCookie without connecting steamuser? How can I get WebCookie without connecting steamuser
×
×
  • Create New...