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. Hello, I'm using card bot (lvl up bot) with public source code everything is working fine, but I want to do this bot more effective this bot using: community.startConfirmationChecker(10000, CONFIG.IDENTITYSECRET); and I don't like this method, I trying to use acceptConfirmationForObject, but I think I'm doing something wrong community.on("newConfirmation", (CONF) => { console.log("## New confirmation."); community.acceptConfirmationForObject(CONFIG.IDENTITYSECRET, CONF.id); });because if I remove "community.startConfirmationChecker" my trades are not accepted when I use: "community.on("newConfirmation", (CONF) => {" I don't even see console logs with "console.log("## New confirmation.");" did I do something wrong? I want to remove startConfirmationChecker and using only acceptConfirmationForObject
  2. What cookies names should we add to a session in order to be considered as logged-in ??
  3. Valve updated the steam web chat, it seems that its works differently. Anyone has any solution other than understand how this system works, maybe login into the old steam web chat?
  4. Hi, I'd like to get the lowest price of a Background/Emoteicon on the market. I already figured out how to do that, but for some reason this will ONLY work for anything but Steam items.. Code https://pastebin.com/ujkfYLLa Also, what's the optimal frequency to use this function? Just so I don't spam it too hard.
  5. I get this error every so often, I don't know where it's coming from so I don't know how to log in once it happens. This isn't part of the sessionExpired event, as I have this in my code: community.on("sessionExpired", function(err) { console.log("## Session Expired, relogging."); client.logOn(logOnOptions); }); help?
  6. Sup guys. I've been getting this error every once in a while when trying to confirm a trade: ``` 14|trade | Error: Could not act on confirmation 14|trade | at /root/tradingbot/node_modules/steamcommunity/components/confirmations.js:145:12 14|trade | at SteamCommunity.<anonymous> (/root/tradingbot/node_modules/steamcommunity/components/confirmations.js:276:3) 14|trade | at Request._callback (/root/tradingbot/node_modules/steamcommunity/components/http.js:67:15) 14|trade | at Request.self.callback (/root/tradingbot/node_modules/request/request.js:186:22) 14|trade | at emitTwo (events.js:125:13) 14|trade | at Request.emit (events.js:213:7) 14|trade | at Request.<anonymous> (/root/tradingbot/node_modules/request/request.js:1163:10) 14|trade | at emitOne (events.js:115:13) 14|trade | at Request.emit (events.js:210:7) 14|trade | at IncomingMessage.<anonymous> (/root/tradingbot/node_modules/request/request.js:1085:12) ``` Here is my code (it's monstrously horrendous. Ive cut too many corners to neaten it): ```js acceptOffer(offer) { return new Promise((resolve, reject) => { offer.accept((err, status) => { if (err) { if (err.message == 'Not Logged In') { this.once('managerCookies', () => { this.acceptOffer(offer) }) return } return reject(err) } this.manager.once('receivedOfferChanged', (offer, oldState) => { if (offer.state == 3) { this.pushBullet.note('Trade Offer Accepted:', `Giving: \n${offer.itemsToGive.map(item => item.market_hash_name).join('\n')} \nReceiving: \n${offer.itemsToReceive.map(item => item.market_hash_name).join('\n')}`) offer.getReceivedItems((err, items) => { this.emit('debug', 'Accepted trade offer') this.emit('debug', 'Updating inventory cache') this.backpack.loadBptfInventory() .then(() => { this.emit('debug', 'Loaded BPTF inventory') for (let item of items) { if (this.prices[item.market_hash_name]) { if (!this.prices[item.market_hash_name].isCurrency) { this.emit('debug', 'Attempting to list the item') this.backpack.createSellListing(item.id, this.backpack.scrapToRef(this.prices[item.market_hash_name].sell)) .then(res => { if (res.listings[item.id].created == 1) { this.emit('debug', 'Created Listing') } else { this.emit('debug', 'Error creating listing') } }) .catch(err => { this.emit('debug', err) }) } } } }) .catch(err => { this.emit('debug', 'Error loading my bptf Inventory...') this.emit('debug', err) }) //should do error handling here. }) return resolve(true) } }) this.community.acceptConfirmationForObject(this.logOnOptions.identitySecret, offer.id, err => { if (err) { return reject(err) } }) }) }) } ```
  7. So, I am trying to do some curator stuff with node-steamcommunity. However, for some reason, my simulated requests failed. For example: const formdata = { sessionid: community.getSessionID(), clanid: offer.clanid, appid: offer.appid, action: `accept` }; user.once(`webSession`, () => community.httpRequestPost({ url: `https://store.steampowered.com/curator/${offer.clanid}/admin/ajaxrespondoffer`, form: formdata, // jar: jar, headers: { // ":authority": `store.steampowered.com`, // ":method": `POST`, // ":path": `/curator/${offer.clanid}/admin/ajaxrespondoffer`, // ":scheme": `https`, "Accept": `*/*`, "Accept-Encoding": `gzip, deflate, br`, //"accept-language": `nl-NL,nl;q=0.9,en-US;q=0.8,en;q=0.7`, "Content-Length": `77`, "Content-Type": `application/x-www-form-urlencoded; charset=UTF-8`, "Cookie": community._jar.getCookieString(`https://store.steampowered.com`), "DNT": `1`, "Origin": `https://store.steampowered.com`, "Referer": `https://store.steampowered.com/curator/${offer.clanid}/admin/pending`, //"user-agent": `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36`, "X-Requested-With": `XMLHttpRequest` } }, acceptedCuratorConnectOffer)); user.webLogOn(); I tried to experiment with headers, but that doesn't seem to do anything. Could it be because of https? Or protocol being h2?
  8. Title says it all. How would i go about checking if a steamid64 is your friend? am having some crashing issues with my bot attempting to message non friends.
  9. How do you get the current gameS of you and your friends? (including non-steam game)
  10. Hey i'm wondering is there any option to make steam bot that will buy games from steam store?
  11. Hi, Is possible to see how many days left '7 days trade ban' for csgo item ? cant find this information in CEconItem{}. Regards, Thank you
  12. Whenever I use this function, I do lose my profiles background and also a custom textbox that i have setup manually. Do i need to hardcode those or is there a way of ignoring them?
  13. Hello. Maybe someone has encountered such a problem.Here is my code: const SteamCommunity = require('steamcommunity') const SteamTotp = require('steam-totp') const request = require('request') var myProxy = request.defaults({'proxy': 'http://104.***.***.*3:3128' }); const client = new SteamCommunity({ "localAddress": myProxy, "request": myProxy, }); client.login( loginOptions, function(err, sessionID, cookies, steamguard) { if (err) console.log('ERROR', err) }); How can i solve this?
  14. After a somewhat long hiatus from programming bots I decided to come back to it and found that SteamCommunity no longer has a "newConfirmation" event. Can somebody please give an example of how catching and dealing with confirmations is done now? Thanks
  15. Greetings, while working on my bot's setting module, I ran into an issue. When calling `editProfile` or `profileSettings` callback with error is returned saying. "Error: options.uri is a required argument" But earlier this week it was working just fine. This is how I'm calling it, if that's any of help. // When calling this function, "profile" object is being passed. let self = this; this.name = profile.name; this.description = profile.description; this.picture = profile.picture; this.community.editProfile({ name: self.name, summary: self.description }, (err) => { if(err){ return callback("Unable to update profile information."); } }); this.community.profileSettings({ profile: 3, comments: 3, inventory: 3, inventoryGifts: false }, (err) => { if(err){ return callback("Unable to update profile settings."); } });
  16. Hi, i want that bot make posts on my SteamGroup i have this code: var id = "OctaFox"; var headline = "Some fancy headline"; var content = "Just wanted to say Hello!"; community.getSteamGroup(id, (err, group) => { if(err) { throw err; } else { group.postAnnouncement(headline, content, (err) => { if(err) { throw err; }; }); }; }); The Bot is Admin, but on the SteamGroup i don`t see any post, and in console i don't have errors. Bot full sorce code --> https://github.com/xedom/xeSteamBot/blob/master/index.js Someone can help me? Thanks
  17. The postGroupAnnouncement doesn't trigger sessionExpired if the session is expired because the err object never displays the "Not Logged In" error. Because of the this issue mentioned above you can't post announcements or log back in from the postGroupAnnoucement. Is there a way around this issue? My code. community.postGroupAnnouncement(config.steam_group_id, title, body, function(err) { console.log(err); // Displays null if the session is expired. if(err != null) { if(err.toString().indexOf("Not Logged In") > -1) // Never is triggered. { console.log("Saved Announcement"); announcements.push({title: title, body: body}); } else { console.log(err); response.status(500).send("An error has occured, check your console."); } } else { console.log("Posted Announcement Successfully!"); response.status(200).send("Posted Announcement Successfully!"); } });
  18. Hello, I'd been trying to get the acceptConfirmationForObject working with below code community.acceptConfirmationForObject(checker, extraObj["trade_id"], function (err) { if (err) { console.log('called transferItem here 7.01 acceptConfirmationForObject got error \n'+util.inspect(err, false, null)); } else { console.log('called transferItem here 7.02 acceptConfirmationForObject succesfull '); } }); But it keeps giving me this error: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid. The steam-community version I've is 0.2.2 and when I check for latest available with this command npm view steam-community versions the highest it gives is 0.2.2 while the least version that's needed is 3.27.0 as written in doc https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#acceptconfirmationforobjectidentitysecret-objectid-callback Not sure even though I've very low version than why is even community object giving me that function and why in version list it shows the available version up to 0.2.2? Do I've to upgrade all other modules to get the latest version? In between rest of the things with trade are working fine and even the shared secret is working for auto login without asking for steam guard code and the time in steam guard device and my server is same so please help me figure out what is the issue. Thanks
  19. function kick (){ community.getGroupMembers('GROUPID', function(err, members) { community.kickGroupMember('USERID', function (err) { if (err){ console.log(err); } else { console.log('Good'); } }); }); } Hello. I want to kick some member of group. But i have a this error; events.js:136 throw er; // Unhandled 'error' event ^ TypeError: steamID.getSteamID64 is not a function at SteamCommunity.kickGroupMember (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\steamcommunity\components\groups.js:431:24) at C:\Users\Lenovo\Desktop\Yeni klasör\blue.js:241:13 at C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\steamcommunity\components\groups.js:63:5 at Parser.<anonymous> (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\xml2js\lib\parser.js:303:18) at Parser.emit (events.js:159:13) at SAXParser.onclosetag (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\xml2js\lib\parser.js:261:26) at emit (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\sax\lib\sax.js:624:35) at emitNode (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\sax\lib\sax.js:629:5) at closeTag (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\sax\lib\sax.js:889:7) at SAXParser.write (C:\Users\Lenovo\Desktop\Yeni klasör\node_modules\sax\lib\sax.js:1436:13) Can you tell me what i did wrong ? Greetings.
  20. Hi, did anyone find out how to accept mobile confirmations without (deprecated) pooling with startConfirmationChecker and not get ratelimited after few calls of acceptConfirmationForObject? I do not want to accept that I have to wait up to 10 seconds for confirmation
  21. Hi all, So this is my code : community.on('sessionExpired', (err) =>{ console.log("Session Expired !! Logging In Again...") if (a = 1) { a = 0 login(); } }); community.on('disconnected', (err) =>{ console.log("Disconnected !! Logging In Again...") if (a = 1) { a = 0 login(); } }); So what is happening is that the sessionExpired is being called but when the bot is trying to log in, it crashes with an error stating that we are already logged in and we cannot log in again, also sometimes the bot crashes with an error saying the session was replaced or something like that, sorry I don't exactly remember, will post log when it happens again. Any help would be greatly appreciated PS: I've added that var a to make sure that the login function is called only once, I change it back to 1 once we get the webapi key from steam.
  22. Using node-steam-user + node-steamcommunity + node-steam-tradeoffer-manager. At some point this happening: Calling getUserDetails is returning Not logged in. steamCommuniti'es loggedIn returns true, bot is still polling offers and gets new offers, but even after webLogOn cant make getUserDetails reqeust. What can be a problem?
  23. Do someone know parameters for steam showcases from this pull request: https://github.com/DoctorMcKay/node-steamcommunity/pull/143 ?
  24. Is there an event that triggers when the user plays a game? & when he stops?
×
×
  • Create New...