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. 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]
  2. 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
  3. 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
  4. 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?
  5. 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, });
  6. Good evening. I noticed that user data is cached. For example: community.getSteamUser(steamID), (err, user) => { console.log(user.groups); }); Will output the same data until I restarted the bot. Is there a way to disable this cache ?
  7. Is it possible to post a comment in a group ?
  8. 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?
  9. 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.
  10. 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?
  11. 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.
  12. 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?
  13. 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:
  14. 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); } }); }); }); };
  15. 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%
  16. 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?
  17. Hello. Is it possible to get all comments on a Steam profile via some node modules, or I need to scrap html?
  18. 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
  19. /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)
  20. 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.
  21. 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?
  22. 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?
  23. 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.
×
×
  • Create New...