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. 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!"); } });
  2. 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
  3. 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.
  4. 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.
  5. hi Doc! i'm calling steamcommunity.acceptConfirmationForObject with the offer id and getting a 429 back. i'm also running steamcommunity.startConfirmationChecker but on a slow schedule (once every 2 minutes) - this is to catch any possibly failed confirmations. the code works in a debug environment, the 429 is only in production (not surprisingly). the weird thing is that all outstanding confirmations go through when the automatic confirmation checker runs, just not the acceptConfirmationForObject call which return 429s every time. i'm using steam-tradeoffers.makeOffer to create the offers and then call acceptConfirmationForObject in makeOffer's callback is it possible that the problem is both calls are made to the web api too quickly? should i put the acceptConfirmationForObject on a timeout? any ideas welcome! ~bp
  6. 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?
  7. Do someone know parameters for steam showcases from this pull request: https://github.com/DoctorMcKay/node-steamcommunity/pull/143 ?
  8. Is there an event that triggers when the user plays a game? & when he stops?
  9. I want have in my bot command for show trade url and for change trade url, trying to do that like that but... after this not working, I was thinking how to do that. Any help? if (command == '!tradelink') { community.on('getTradeURL', function(err, url) { if (err) { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link err: " + err); } else { console.log("(" + dateTime() + " |" + dateTime(true) + ")" + " Trade link: " + url); client.chatMessage(config.adminID, "Trade link: " + url); } }); } To be sure: [email protected]
  10. const SteamUser = require('steam-user'), SteamTotp = require('steam-totp'), SteamCommunity = require('steamcommunity'), steamConfig = require('../steam-bot/config.json'), client = new SteamUser(), community = new SteamCommunity(), steamUserLogin = { accountName: steamConfig.username, password: steamConfig.password, twoFactorCode: SteamTotp.generateAuthCode(steamConfig.sharedSecret) }, steamGroupID = '103582791459977984'; var announcementHeadline = 'testheadline', announcementContent = 'testcontent'; client.logOn(steamUserLogin); client.on('loggedOn', function(){ console.log('Logged into steam'); }); client.on('websession', function(sessionid, cookies){ community.setCookies(cookies); }); community.postGroupAnnouncement(steamGroupID, announcementHeadline, announcementContent, function(err){if (err) {console.log(err.message)} client.logOff()}); It logs into steam, waits a few seconds and then logs off. No error is returned. I checked the permissions, and I can post announcements manually. It seems to run the function as changing the group ID returns an error of invalid. Can you point me in the direction of what I'm doing wrong? Thank you for any and all help
  11. Are showcases not supported still? I have a description that auto updates every 5 minutes, and at that 5-minute mark, it removes the showcase. Is there any way to fix this?
  12. Guest

    post comment

    Hello For what reasons can I get this error? The settings on this account do not allow you to add comments. through the browser, I can send a message, and through the library I can not profile not private , open wall , but i cant leave comment
  13. Hello it's possible to use proxy ip to bind localAddress for steamcommunity, or i can use proxy only for request? var steam = new SteamCommunity({ "localAddress": myProxy, "request": myProxy, });
  14. EDIT: welp thats slightly embarrassing, seems I had a facepalm moment and mixed myself up, was looking at the steamcommunity when I indeed wanted steam-user, and tada there is the functionality I needed right there in my stupid face. My idea is to use the nicknames to make notes and keep track of basic information about people who have interacted with my bot, I realize I could setup some other kind of logging for this, but I would much rather have this information easily visible within steam its self when I login via web and look at the friendslist. [ex https://i.imgur.com/Ns59h2V.png and https://i.imgur.com/ibDUyuj.png] I looked around and didn't seem to find much about it.. But is there currently any functionality to read and set nicknames for people?
  15. Is it possible to post a comment in a group ?
  16. Apologies if this is an obvious problem. I have a function that is called that gets a user's inventory, and then pipes that array to another function. It looks like this: function getInv(steamID) { community.getUserInventoryContents(steamID, 730, 2, true, 'english', offercase(err, inventory, currencies, totalitems));} And is called like this: getInv(data.steamID) With data.steamID being formatted as { universe: 1, type: 1, instance: 1, accountid: 123456789 } When it's run, it states that "err" is undefined. What's the issue here?
  17. Hi all, when I was using steamcommunity.marketSearch() to gather item price data, sometimes will prompt up error with http-429( too many request). As I know, internally it will auto fetch the pages of item results, so it may trigger multiple requests, and sometimes got http-429 error. Questions: 1. Any one has idea to avoid triggering http code 429? 2. Or , is there any better ways to gather price info for such items ? Thanks.
  18. Hello, I was reading over the documentation for both node-steamcommunity and node-steam-tradeoffer-manager. According to the steam community documentation community, polling is deprecated and may be removed. In the tradeoffer-manager documentation you use polling there. Are these two different types of polling? Would I be able to continue to use tradeoffer-manager polling or should I move over to "acceptAllConfirmations" from the community module?
  19. I got the SteamID for a group from `<groupID64>` on the page like the internet told me: https://steamcommunity.com/groups/projectcrate/memberslistxml/?xml=1 SteamID returns: SteamID { universe: 1, type: 7, instance: 0, accountid: 5921375 }7 is `CLAN`, so it appears to be working correctly. However: const SteamCommunity = require('steamcommunity'); const community = new SteamCommunity; const SteamID = require('steamid'); const group = new SteamID('103582791435442783'); community.login({ 'accountName': <username>, 'password': <password> }, function(err, user) { if (err) { console.log(err); } community.editProfile({ 'name': <name>, 'summary': <summary> 'customURL': <URL>, 'primaryGroup': group, 'realName': '', 'country': '', 'state': '', 'city': '', 'background': '', 'featuredBadge': '' }, function(err) { if (err) { console.log(err); } }); }); "[Error: Failed to set new primary group.]" If you generate `group` with another SteamID64 like a profile's it doesn't throw an error, but it obviously also doesn't do anything.
  20. i have a genuine killer exclusive with the australium paint on it i done var item = ourItems[i].market_name; var des = ourItems[i].descriptions; console.log(item) console.log(des) if (item == stock[item] && des == stock[item].description){ if (item == Prices[item] && des == Prices[item].description){ console.log(Prices[item].sell) } } when it does the console log on item and des it shows "Genuine Killer Exclusive": [ { type: "text", value: "Paint Color: Australium Gold", color: "756b5e", app_data: "" }, { type: "text", value: "Break news, spirits and heads.", app_data: "" } ] i put the descriiption text in the stock under the item name and is the value of description like below { "Genuine Killer Exclusive": { "instock": 0, "stocklimit":1, "description": [ { "type": "text", "value": "Paint Color: Australium Gold", "color": "756b5e", "app_data": "" }, { "type": "text", "value": "Break news, spirits and heads.", "app_data": "" } ] } } the problem is with the "" around type, value, color, app_data, type, value, app_data it acts as if that is not the value but json wont work without the " " around the certain words SOLUTION:
  21. This is my code. How can i end process after changing avatar? var SteamCommunity = require ("steamcommunity"); var SteamTotp = require ("steam-totp"); var fs = require ("fs"); var client = new SteamCommunity(); var code = SteamTotp.generateAuthCode('myshared secret'); var logOnOptions = { "accountName": "name", "password": "pasword", "twoFactorCode": code }; girisyap(); function girisyap() { console.log("Logging into Steam..."); client.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("We have an error: " + err); } console.log("We logged in with " + logOnOptions.accountName); client.loggedIn(function(err, loggedIn) { if(err) { console.log("Problem"); } console.log("LoggedIN " + loggedIn); var steamprofilesttngs = { "name": "My Bot[00]", }; client.editProfile(steamprofilesttngs, function(err) { if(err) { console.log(err); } }); client.uploadAvatar('avatar-url', function(err) {if(err) { console.log(err); } }); }); }); };
  22. So I am (still) working on an automatic steam item seller, but I realised that the price specified is actually the "You Receive" price, and not the "Buyer pays", how would I go around doing this, since I will never actually have a chance to know the fees 100%
  23. As has also been the case earlier, I am trying to create an automatic steam market seller, however I get error 400 when trying to do so. I have tried multiple ways, ending up trying to use httpRequestPost from the steamcommunity package community.httpRequestPost('https://steamcommunity.com/market/sellitem/', { form: { sessionid: community.getSessionID(), appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: item.price }, headers: { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Connection': 'keep-alive', 'Cookie': cookies, 'Host': 'steamcommunity.com', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.5' }, json: true }, (err, response, json) => { if(err) { console.log(err.toString()); return; } console.log(json); }, "steamcommunity"); This will return error 400, and I have no clue as to why that is, any suggestions?
×
×
  • Create New...