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 want to make a script that'll automatically write a custom message to everyone who invites me to play CS:GO. How can I do it? And I'm a very big noob in JavaScript and Node.JS and because of it I beg you to explain everything step-by-step.
  2. if(err.message == 'SteamGuard') { console.log('[STEAM] '+account.username+' an email has been sent to your address at '+err.emaildomain); return false; } err.emaildomain is empty why? https://github.com/DoctorMcKay/node-steamcommunity/blob/master/index.js#L136
  3. I am using this library var Steam = require('steam'); //use npm install [email protected] - this code isn't compatible with the latest version. var SteamTradeOffers = require('steam-tradeoffers'); //use npm install [email protected] - this code isn't compatible with the latest version.var mysql = require('mysql'); and getting offer.setup error , i update my steam-trade offer library from 1.2.3 library . and now getting this error before this i used steam tradeoffer library and got thie error steamcommunity.read. i wanna set up my bot . any solution please. would u provide me.
  4. So currently I write my bot on my regular computer, and once it's tested I upload it to my RaspberryPi so it could continue to run while my computer is off. However, this brings the issue that when there's a trade offer that needs to be confirmed it gives me this error: Error: Could not find confirmation for object $offer.id Is there some sort of "cooldown" period for it to be able to work from the Pi or some way to reset it? I guess it shouldn't be a problem once the bot is finished, but whilst I'm developing it I'd like to be able to run it from both my computer and R.Pi. Thanks
  5. I buy in vds ip v4 and add code community: new SteamCommunity({localAddress: ip}), where ip this vds ip But i have error: ALL IS GOOD,but Error confirm,check error: Error: bind EADDRNOTAVAIL ip What is my problem?
  6. sometimes i got: There was an error accepting this trade offer. Please try again later. (16) but a few seconds later, the offer is accepted, and the event receivedOfferChanged is fired in ateast 10~30 seconds how can i fix or, make the receivedOfferChanged event more quicker?
  7. When i am using offer.make offer function var offer = { partnerAccountId: 76561198361006906, accessToken: "F8Rnh10I", itemsFromThem: [{ appid: 730, contextid: 2, amount: 1, assetid: "9710052624" }], itemsFromMe: [], message: "Hello! Checkout what I'm offering You ;)"};offers.makeOffer(offer, function(err, result){ // 2. callback function that will handle result of makeOffer if (err) { console.log(err); //return; } console.log(result); }); i am getting error this._requestCommunity.get(requestParams, function(error, response, body) { ^ TypeError: Cannot read property 'get' of undefined like this how can i solve this ? any solution for this ??
  8. When I try to run the script I'm getting this error: /home/user/Documents/Programming/Javascript/tf2_bot/node_modules/steamcommunity/components/confirmations.js:401 var existing = this._confirmationKeys[tag]; ^ TypeError: Cannot read property 'conf' of undefined From searching the forum I gathered that the issue is with triggering checkConfirmations before I start confirmationChecker. However, when I try to start it as a callback to me initiating the community object with cookies - "test" console log doesn't fire. community.setCookies(cookies, function() { community.startConfirmationChecker(30000, function() { console.log("test"); }); }); What am I doing wrong?
  9. So say I've got a friend request, and I want the bot to accept all incoming friend request. To use the acceptFriendRequest method I need the steamID to use the getSteamUser method. How could I get it?
  10. Currently I'm using steam-user as it allows to add node-tf2 module, but there are some methods that steamcommunity has that I'd like to integrate into my script. So currently I login with steam-user, and then try to pass the cookies to steamcommunity: client.on("webSession", function(sessionID, cookies) { community.setCookies(cookies); manager.setCookies(cookies, function(err) { if (err) { console.log("There was a WebSession error: " + err); process.exit(1); return; } else { console.log("Successfully got an API key: " + manager.apiK$ } }); community.setCookies(cookies); community.startConfirmationChecker(30000, identitySecret); //Checks and ac$ });But when I try to do operations with steamcommunity it gives me a HTTP 401 response, which means it hasn't authenticated. How do I solve this?
  11. Hello there, I managed to make my bot edit their "Real Name' using editProfile node-steamcommunity, and I found a problem Everytime I'm using "community.editProfile", it always removing one of my bot Profile Showcase. The original is "Items Up For Trade" and Custom Info Box, but after calling editProfile, "Items Up For Trade" always gone and only leaving Custom Info Box. Is this a bug or am I missing something? Because I can't find anything in wiki about Profile Showcase. Thanks Not sure if it's help, but here's part of code community.editProfile({ "realName": "Bot Version: " +version, "background" : 4149974111, }, function(err) { if (err) { var log = (currentdate() + " - Failed to update RealName"); fs.appendFile("log.txt", log+ "\n", {flag: 'a'}, function(err) {}); console.log(log); } else { var log = (currentdate() + " - RealName updated: "+version); fs.appendFile("log.txt", log+ "\n", {flag: 'a'}, function(err) {}); console.log(log); } });
  12. Hi, Do you have any idea what the phrase 'Called method busy, action not taken' could mean as an error? It happens only a few times and I'm also not sure where it is getting invoked, either from getUserInvenotryContexts or getUserInventoryContents method. Thanks in advance.
  13. Hey guys. Today I tried to debug why mobile confirmations started giving me ESOCKETTIMEOUT. It turns out that getConfirmations returns 300 of those, and I think all of them are for trade offers that were already cancelled and gone. Most likely some time in the past I created an offer, and the confirmation for it didn't work with its usual "Could not act on confirmation", so I moved on and cancelled the offer. It seems to happen that all those confirmations never disappeared! Now there are 300 of those, confirmation requests are working really slow, and none of those confirmations can be accepted or cancelled. I tried to accept/cancel them all at once, and 1 by 1, they always return "Could not act on confirmation". Here's an example of CConfirmation I get: http://i.imgur.com/YTrXah9.png. Sorry, but I decided to blur the IDs just in case. These confirmations are really old and can't disappear. What can I do other than transfer all my items to a new account and forget about this one? Can I remove these confirmations? What can I do with a new account to prevent same shit from happening? Please help.
  14. Hello. I would like to thanks everyone for helping me first. I am really glad. I have a problem with steam bot. The problem is that he logs in normally than refreshing sessions etc everything is okay but after 2 days or more when refreshing session i get error Invalid RSA key recieved and than it ends. So I need to start it manually again. community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); SteamTotp.getTimeOffset(function(err, offset, latency) { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset); community.login(account, login); }); console.log('=========================REFRESHING SESSION========================='); }); There is my code. Thank you very much for fast reponse.
  15. Sorry if this has already been asked before.. ik it can get quite annoying but im running into this issue with my session expiration. I have the following code that I saw someone post to re-login. community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } console.log("Re-Logging in to Steam..."); community.stopConfirmationChecker(); client.logOn(logOnOptions); }); However when it hit that code it gave the following output.. /home/node_modules/steam-user/components/web.js:9 throw new Error("Cannot log onto steamcommunity.com without first being connected to Steam network"); ^ Error: Cannot log onto steamcommunity.com without first being connected to Steam network Again sorry if this has already been asked..i've been looking around for quite some time now but all I see is.. "You have to just re-login" But just saying that doesn't really help me understand. I'd be greatful for a useful response! Thanks
  16. Hi, I have a problem with steamcommunity. I can only get trade confirmations those created manually when i call steamcommunity.getConfirmations. Those trade confirmations i created with steam-tradeoffer-manager can't get them. Thank you for help. attch file 111 can see i have 2 confirmations to confirm. but when i call getConfirmations i only get one~ var time = SteamTotp.time(steamBot.community._timeOffset); var confKey = SteamTotp.getConfirmationKey(steamBot.option.identity_secret, time, 'conf'); var allowKey = SteamTotp.getConfirmationKey(steamBot.option.identity_secret, time, 'allow'); // steamBot.community.acceptAllConfirmations(time, confKey, allowKey, function(err, confs){ // if(err){ // res.sendError(err); // return; // } // if(confs == null) confs = []; // res.sendSuccess(confs); // }); req.steamBot.community.getConfirmations(time, confKey, function(err,confs){ if(err){ res.sendError(err); return; } res.sendSuccess(); });
  17. Hi, quick question. Does the page that contains `g_rgAppContextData` have the same throttling rules applied that the inventory feeds (/inventory/X/Y/Z) proper do? In other words does the same eased limit apply to logged in users looking at their own pages? I recall like 8 months ago Valve severely increased the throttling on this page. But I do not remember if it was part of the original throttling increase when things became slow and cache-missey or after they introduced the new feeds. Edit: So I've been testing this in-userscript and it looks like that page will be served back reliably if you're logged in. Results inconclusive when I'm logged out. But it seems to be more lenient than the inventory pages themselves. Because I get the "The request is a duplicate and the action has already occurred in the past, ignored this time (29)" error when the context data page is otherwise fine. Is it actually safe to use getInventoryContexts again? That'd be nice. Edit 2: Forgot to update the thread. Looks like I was a version behind and confusing myself because of the 302 chain I was seeing in-browser/userscript versus just getting Malformed response from the lib. For... Whatever reason it appears the flow in error conditions (private?) is: /profiles/whatever/inventory -> /id/vanity/inventory -> /id/vanity
  18. Hello! So, I noticed there's getNotifications() to get the number of notifications, but can I actually get, for example, who I have gotten a friend invite from? Thanks!
  19. Recently I have been encountereing a issue with my session expireing on one of my bots, and I'm unsure what a correct way of refreshing the session would be, as I have never touched upon this. A function for logging back in, that I figured would work was; community.on('sessionExpired', function (err) { console.log('Session expired.'); if (err) { if (err.message == "Not Logged In") { client.logOn(logOnOptions); return; } else { console.log(err.message); return; } } else { client.logOn(logOnOptions); return; } }); But sadly it does not log the user back in. Would a possible solution be making the client log out first when the session is expiering and then logging back in?
  20. Hello, I tried making getInventoryContents into a function so It'd be able to update time to time, however I get this error: :384 manager.getInventoryContents(440, 2, true, function(err, inventory) { ^ TypeError: Cannot read property 'getInventoryContents' of undefined Part of code: function LoadInventory(manager, callback){ manager.getInventoryContents(440, 2, true, function(err, inventory) { if (err) { console.log(err); return; } if (inventory.length == 0) { // Inventory empty console.log("TF2 inventory is empty"); return; } else {
  21. Hi, everyone. I am making a bot. I run 10 account on 1 IP, but sometime my app restart auto. I dont know why, maybe run out of session. Someones be the same?
  22. Hi i using this code for login function login(err, sessionID, cookies, steamguard) { if(err) { logger.error('Auth error'); logger.debug(err); if(err.message == "SteamGuardMobile") { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret); logger.warn('Error in auth: '+account.twoFactorCode); setTimeout(function() { community.login(account, login); }, 5000); return; } process.exit(0); } logger.trace('Sucesfully auth'); account.sessionID = sessionID; account.cookies = cookies; community.getWebApiKey('secrect.com', webApiKey); community.startConfirmationChecker(10000, account.identity_secret); } after 2 ~ 3 days i lost my session, and i use this for new loggin community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); community.login(account, login); console.log('=======New Session========='); }); How I force to lose my session? for testing my code? It's horrible to have to wait 2 ~ 3 days Sorry my english...
  23. So I was wondering if it is possible with any of McKay's modules to read numbers and maybe even words out of chat messages. Say I'd like to search if there is this item in bots inventory and I type !search <item name> or if I want to buy keys !buykey X Is this somehow possible? Thanks in advance!
  24. Please, help me. After today Steam maintenance when Bot make a trade appears this error: ## An error occurred while getting user profile: Error: HTTP error 500 D:\Downloads\Bot\Bot 26.04.17\index.js:977 client.chatMessage(USER.steamID, "An error occurred while getting your profile (to comment)."); ^ TypeError: Cannot read property 'steamID' of undefined at community.getSteamUser (D:\Downloads\Bot\Bot 26.04.17\index.js:977:40) at D:\Downloads\Bot\Bot 26.04.17\node_modules\steamcommunity\classes\CSteamUser.js:18:4 at SteamCommunity._checkHttpError (D:\Downloads\Bot\Bot 26.04.17\node_modules\steamcommunity\components\http.js:110:3) at Request._callback (D:\Downloads\Bot\Bot 26.04.17\node_modules\steamcommunity\components\http.js:50:61) at Request.self.callback (D:\Downloads\Bot\Bot 26.04.17\node_modules\request\request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (D:\Downloads\Bot\Bot 26.04.17\node_modules\request\request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7)
  25. i am generating offer id using node js but i am getting error 26 like { [Error: There was an error sending your trade offer. Please try again later. (26)] eresult: 26 } this. for some product while on other site there is generating offer id like csgoreaper for same products . what is problem I am unable to find the solution . let me help to find the solution.
×
×
  • Create New...