Jump to content
McKay Development

Search the Community

Showing results for tags 'node.js'.

  • 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. getUserDetails(callback) is it possible to add the avatar url to this? I believe you do get this in the response.
  2. File "cellid-XXX.txt" contains id of machine on which bot is turned on, am I right? If yes then does it have any connection with steam-tradeoffer-manger? Is it possible to manipulate with id generating?
  3. Hello, I need change other ip and have problem: ... var steamClient = new SteamClient.CMClient(); BOT.ip = 'XXX.XXX.XX.XX'; console.log(colors.green('Bind ip: '+BOT.ip, 'steamClient')); steamClient.bind(BOT.ip); steamClient.connect(); steamClient.on('connected', function(){ var user = new SteamUser(steamClient, { dataDirectory: __dirname, singleSentryfile: true, promptSteamGuardCode: false, enablePicsCache: true }); var community = new SteamCommunity({ timeout: 30000, userAgent: 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', localAddress: BOT.ip }); var TradeOfferManager = new clearTradeOfferManager({ steam: user, community: community, domain: BOT.username, language: 'pl', pollInterval: 1000, cancelTime: 600000, cancelOfferCount: 16, cancelOfferCountMinAge: 300000, globalAssetCache: true, pendingCancelTime: 32000 }); ... Is this correct? When running 100 bots, on 100bots/ip, 60th bot received error HTTP error 429. When running 100 bots, on 25bots/ip, 60th bot received error HTTP error 429.
  4. Hello! I keep getting an error when I'm doing: manager.getEscrowDuration('76561198016511109', 'EMv1iKH8', function(err, daysTheirEscrow, daysYourEscrow) { if(err) console.log(err); }); And getting: Error: This Trade URL is no longer valid for sending a trade offer to noname. But the funny thing is that https://steamcommunity.com/tradeoffer/new/?partner=324417112&token=EMv1iKH8 tradeurl works fine What am I suppose to do? Thanks!
  5. Hi, Today I found this awesome extansion I tried to use it. I implemented it in my codes Here's my problem: I want to get a message from a friend so I did: advFriend.on('friendMessage', function(steamID, message) { console.log("Friend message from " + steamID.getSteam3RenderedID() + ": " + message); }); But when I send message to my bot, nothing appears in my console. Here's how I defined it before: // Requiresvar Steam = require("steam"),SteamGroups = require("steam-groups"),storage = require('node-persist'),util = require("util"),fs = require("fs"),csgo = require("../"),readlineSync = require("readline-sync"),crypto = require("crypto"),AdvSteamUser = require('steam-user'); // Objectsvar bot = new Steam.SteamClient(),steamUser = new Steam.SteamUser(bot),steamFriends = new Steam.SteamFriends(bot),steamGroup = new SteamGroups(bot),steamGC = new Steam.SteamGameCoordinator(bot, 730),CSGOCli = new csgo.CSGOClient(steamUser, steamGC, false),advFriend = new AdvSteamUser(),I can't find the error. I tried several times and solutions. I don't know from where it comes N.B : I don't have any error reports in my console
  6. Sometimes i get value of getReceivedItems empty. How to recheck this value?
  7. Bot worked fine all time, but today i have error: { [Error: HTTP error 429] code: 429 }, when bot are trying to login. Error throw on manager.setCookies. I tryed start bot from other ip. similar result. Why?
  8. Hello, When does "Error: HTTP error 403" appear? My bots issue those errors really often while trying to send a trade offer. Is it some kind of Steamism again or could be something wrong with my code?
  9. Hello, steam-user docs has Event error At the same time, logon.js component is throwing errors during logOn calls if(this.client.loggedOn) { throw new Error("Already logged on, cannot log on again"); }There are couple of places (2? 3?) where Error is thrown. Why this discrepancy? It feels like some of the Error could be emitted, thus allowing client (as client == developer) handle them in the way they prefer. Right now I would have to wrap calls to logOn in try catch. Do I miss use case here? Thank you!
  10. I know how to get inventories from games but I can't seem to find out how I can load my Steam Inventory......
  11. Hello. How i can get items name in : manager.on('newOffer', function(offer) { // my code below, i'm try but not working for (var i = 0; i < offer.itemsToReceive.length; i++) { console.log(offer.itemsToReceive[i].market_hash_name); } });I'm got "undefined" in console, so?
  12. Hey, I'm trying to make an "confirmation system". After trade is sent, you can call it, with trade id, so it would be confirmed. Is there already something like that or not? If it's not possible to do something like that, okay. If it's not possible (the tradeid confirming, then) -> After logging in I have that line: community.startConfirmationChecker(10000, account.identity_secret);But it doesn't seem to work for me.
  13. Hi guys! I have a problem when i get callback on webSession event, few days ago everything works fine, but now when i try to execute my node js file and got message from my logger: Unable to set trade offer cookies: Error: HTTP error 429. What can be wrong? So trade offer manager sent too many requests to steam and after 5-7 seconds we have 429. client.on('webSession', function (sessionID, cookies) { client.setPersona(SteamUser.Steam.EPersonaState.Online); offers.setCookies(cookies, function (err){ if (err) { logger.error('Unable to set trade offer cookies: '+err); process.exit(1); } }); }); In cookies i receive an array with next data: sessionid, steamLogin and steamLoginSecure. Any idea?
  14. Hello, What is the encoding of the avatar_hash buffer? Thanks.
  15. Hello there! I have a trouble. My account can't generate API'keys, so i was edited index.js from steam-tradeoffer-manager folder, and i found this.apiKey = null and changed it to this.apiKey = options.apiKeyand in my js script i'm use this: var manager = new TradeOfferManager({"domain": "example.com", // Our domain is example.com "language": "en", // We want English item descriptions "apiKey": "myAPIKEY", "pollInterval": 5000 // We want to poll every 5 seconds since we don't have Steam notifying us of offers });Now, i can run my script without errors. For debug i use steam.on('debug', console.log); manager.on('debug', console.log);After the start script i'm send some offerts to my "bot". And bot can't detect these offers. And i haven't errors in logs. So what i can do with that? I got this in console:
  16. If i pass a node-steamcommunity instance in the constructor of the trade offer manager and then i set the cookies of the manager, does the community cookies are also set, or do i need to call setCookies for the community too ?
  17. I just updated steam-tradeoffer-manager and after update i am getting this error. I updated because someone told me that will solve my problem which i have with trades. Not offten but it will happen few times on day.
  18. My bot is often getting "Error: There was an error sending your trade offer. Please try again later. (15)" after last update of node-steam-tradeoffer-manager. By often I mean like 85% of trades which he's trying to send. What am I doing wrong?
  19. Hey, I'm trying to login to steam, but I keep getting an error "Error: SteamGuardMobile". My time is right, shared secret is right as well, What could be wrong? SteamTotp.getTimeOffset(function(err, offset, latency) { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset); account.auth = false; logger.debug(account); community.login(account, login); });
  20. Hi guys i'm use getReceivedItems method, but sometimes it return error, i try to try again in 1 second, but it doesn't give a result. What i must do?
  21. Hello I am having other error. Code: community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); client.webLogOn(); }); And error in console: client is not defined. How to call weblogon function please? Thanks
  22. sentOfferChanged listener don't trigger on mobile confirmation state. Scenario: - Send trade offer from bot (offer is with status Active) - Log in to steam as User and Accept offer -> receive message "You have to confirm in mobile app" -> offer state should be OfferNeedMobileConfirmation but sentOfferChanged don't do anything. With receivedOfferChanged everything works just fine the problem is only with sentOfferChanged.
  23. Hello. First, I would like to thank you, Doctor McKay, for such incredible Node module. Currently, I understand that trading via Trade URLs aren't possible with a limited account using this module, which is based on Node Steam by seishun. Is it possible to trade with this module or seishun's Node Steam using Trade URLs and a limited account? Or at least trade somehow but still with a limited account? Thanks!
  24. I am wondering how to get offer in later stage. Is there some call that I can make to retrieve offer based on offerId or something else? For example I want to Cancel specific offer at some point in time. What i do now is to add all offers in array and get offer from array based on key(offerId) but when i restart my node.js i loose all offers in that array. Also is there something like Resend offer? Thanks.
  25. Hi there At first thnx for the awesome wrapper around the steam trade offers! I have encountered an issue with creating tradeoffers, accepting works like a charm! When i try to create and offer, add items to it and send, i don't receive any feedback err and status are undefined. If i log the tradeoffer all is set, what am i missing? Thnx in advance! steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("Steam login fail: " + err.message); process.exit(1); } fs.writeFile('steamguard.txt', steamguard); console.log("Logged into Steam"); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); // var inventory = manager.loadUserInventory("*****", 730, 2); // console.log(inventory); var offer = manager.createOffer("****"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "6582251698"}); offer.send(function(err, status) { if (err) { console.log("send" + err); } else { console.log("Offer #" + offer.id + " " + status); } console.log(status); console.log('hierheirieirh'); }); }); console.log('testtest'); // Checks and accepts confirmations every 30 seconds steam.startConfirmationChecker(30000, config.identity_secret); });
×
×
  • Create New...