Jump to content
McKay Development

Search the Community

Showing results for tags 'question'.

  • 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 have a code to obtain cookies: community.login({ ... login data ... }, function(err, sessionID, cookies, steamguard){ fs.writeFileSync("cookies.json", JSON.stringify(cookies)); }) (Sorry for this format of code, writing post from phone. And to be clear i am receiving any login error) Then i take cookies file and proceed to the main app. manager.setCookies(cookies, function(err){ if(err){ throw err; // getting Not Logged In } ... }); (manager object is being set at the start of the code) why manager.setCookies requires to be logged in, when i am providing valid cookies?
  2. Hi, so ive did something like this: var community = new SteamCommunity(); var ReadLine = require('readline'); var rl = ReadLine.createInterface({ "input": process.stdin, "output": process.stdout }); function login(accountName, password, authCode) { community.login({ "accountName": accountName, "password": password, "authCode": authCode }, function(error, sessionId, cookies, steamguard) { if (error && error.message === "SteamGuard") { console.log("An email has been sent to your address at " + error.emaildomain); rl.question("Steam Guard Code: ", function(code) { login(accountName, password, code); }); } }); } is it possible to relogin without using the new steam guard code? like i dont want to type the code everytime i relogin. P.S. i need steam guard enabled
  3. Hello, Guys! I have a few questions. What is difference between this urls? 1. https://steamcommunity.com/mobileconf/conf?p= 2. https://steamcommunity.com/mobileconf/ajaxop?op= How i understood to confirm some trade i need to use https://steamcommunity.com/mobileconf/ajaxop?op= Now i have this code: Parameters: $identity_secret = 'J**************************g=';$time = time();$tag = 'conf';// ---------> base64 confirmation key $buf = pack('NNa*', 0, $time, $tag); $hmac = hash_hmac('sha1', $buf, $identity_secret, true); $k = base64_encode($hmac);// ^--------- base64 confirmation key $steamid = '76561198252188406';$deviceid = 'android:' . preg_replace('/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12}).*$/', '$1-$2-$3-$4-$5', sha1($steamid)); And create final url for post request:$url = 'https://steamcommunity.com/mobileconf/ajaxop?op=allow&p='.$deviceid.'&a='.$steamid.'&k='.$k.'&t='.$time.'&m=android&tag=conf'; But i get this: "{"success":false}" That is the problem? Maybe i need some more parapeters or i generate something not right?
  4. When i sent item as gift steam need verify in steam mobile app. How steam bot can this ? Thanks !
  5. Hello , So basically, we're using steambot, by jessecar96. All of my current bots accs are linked to the mobile auth on my iPhone. I've retrieved the shared_secret & identity_secret from my steam app for each account. We were able to login and generate the totp sucessfully, but we're not having any success when it comes to generating the trade confirmation. We switched one of the bots to the desktop authenticator (also made by jessecar) and were able to generate the maFile and everything worked successfully. The only problem with this is the account now has a 15 day cool down. We are trying our best to avoid this as we are hoping to release our project within the next week or less. My question is, would it be possible to copy the same maFile format from our working account on the desktop and use the layout for the rest of our accounts? I am able to retrieve all the details for shared_secret, serial_number, revocation_code, uri, server_time, account_name, token_gid, identity_secret, secret_1, and status from the files extracted from my iPhone for each account. Only problem is, I don't know what will happen if we use the same device_id from our account on the desktop auth as well as the same sessionID, SteamLogin, SteamLoginSecure, WebCookie, and OAuthToken. Will it work? // Example 1 account { "shared_secret": "11111111111111111111111111", "serial_number": "11111111111111111", "revocation_code": "R11111", "uri": "otpauth://totp/Steam:example1?secret=1111111111111111111111111111&issuer=Steam", "server_time": 1111111111, "account_name": "Example1", "token_gid": "11111111111111", "identity_secret": "1111111111111111111111111", "secret_1": "1111111111111111111111", "status": 1, "device_id": "android:1111111111-1111-111111-1111111", "fully_enrolled": false, "Session": { "SessionID": "11111111111111111111111", "SteamLogin": "Example 1 SteamID64Here%7C%1111111111111111111111111111111111", "SteamLoginSecure": "Example 1 SteamID64Here%7C%1111111111111111111111111111111111", "WebCookie": "1111111111111111111111111111111111", "OAuthToken": "11111111111111111111111111111111111", "SteamID": Example 1 SteamID64 } } // Example 2 account { "shared_secret": "22222222222222222222222", "serial_number": "222222222222", "revocation_code": "R22222", "uri": "otpauth://totp/Steam:example2?secret=22222222222222222222222222222&issuer=Steam", "server_time": 2222222222, "account_name": "Example2", "token_gid": "2222222222222222", "identity_secret": "2222222222222222222222", "secret_1": "22222222222222222222222", "status": 1, "device_id": "android:1111111111-1111-111111-1111111", // we keep the same device_id as our example 1 "fully_enrolled": false, "Session": { "SessionID": "11111111111111111111111", // we keep the same sessionID from example 1 "SteamLogin": "Example 2 SteamID64Here%7C%1111111111111111111111111111111111", // we keep the same SteamLogin from example 1 other then the steamID64 "SteamLoginSecure": "Example 2 SteamID64Here%7C%1111111111111111111111111111111111", // we keep the same SteamLoginSecure from example 1 other then the steamID64 "WebCookie": "1111111111111111111111111111111111", // we keep the same WebCooke from example 1 "OAuthToken": "11111111111111111111111111111111111", // we keep the same OAuth from example 1 "SteamID": Example 2 SteamID64 } }
  6. Hello. Sending a trade offer from bot is the last part before my site is ready but I can't get it work. var newOffer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=240789497&token=ORC28YoI"); newOffer.addMyItems(currentGame); newOffer.send("You just won a bet", function(err, status) { console.log(newOffer); if(pending > 0) { handleOffers(); } }); C:\xampp\htdocs\js\node_modules\steam-tradeoffer-manager\lib\helpers.js:29 callback(error); ^ TypeError: callback is not a function at Object.exports.makeAnError (C:\xampp\htdocs\js\node_modules\steam-tradeoffer-manager\lib\helpers.js:29:4) at SteamCommunity.manager._community.httpRequestPost (C:\xampp\htdocs\js\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:507:12) at Request._callback (C:\xampp\htdocs\js\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\xampp\htdocs\js\node_modules\request\request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (C:\xampp\htdocs\js\node_modules\request\request.js:1081:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (C:\xampp\htdocs\js\node_modules\request\request.js:1001:12)
  7. This is demo code : user.on('tradeRequest', function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", accepting"); respond(true); }); I want addFriend when user trade request ? But event tradeRequest not Emitted ? Please help me ! Thanks
  8. When my site has a > 150 people, then get this error when multiple all trades Code [36m[2017-01-07 15:42:04.768] [DEBUG] [default] - [39m{ Error: Busy at SteamCommunity._community.httpRequest (/bot/node_modules/steam-tradeoffer-manager/lib/webapi.js:43:16) at Request._callback (/bot/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/bot/node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/bot/node_modules/request/request.js:1081:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at Gunzip.<anonymous> (/bot/node_modules/request/request.js:1001:12) at Gunzip.g (events.js:291:16) eresult: '10' } And the second question: I can not understand why, even without a large load is constantly pops up an error connection timeout and HTTP 500: [36m[2017-01-07 15:36:03.946] [DEBUG] [default] - [39m{ Error: Timeout at SteamCommunity._community.httpRequest (/bot/node_modules/steam-tradeoffer-manager/lib/webapi.js:43:16) at Request._callback (/bot/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/bot/node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/bot/node_modules/request/request.js:1081:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at Gunzip.<anonymous> (/bot/node_modules/request/request.js:1001:12) at Gunzip.g (events.js:291:16) eresult: '16' } [36m[2017-01-07 15:35:18.625] [DEBUG] [default] - [39m{ Error: HTTP error 500 at SteamCommunity._checkHttpError (/bot/node_modules/steamcommunity/components/http.js:108:9) at Request._callback (/bot/node_modules/steamcommunity/components/http.js:50:61) at Request.self.callback (/bot/node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/bot/node_modules/request/request.js:1081:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (/bot/node_modules/request/request.js:1001:12) at IncomingMessage.g (events.js:291:16) code: 500 } At this point, "STEAM" is in excellent condition I will be very grateful to you for the answer. In advance, thank you very much! (Sorry for my bad english).
  9. Hello, im trying to get the history of trades of one account, but i allways got error, this is my code: offers.getOffers(2, function(err, sent, recived){ if (err) { console.log(err); process.exit(1); } else { console.log(sent); process.exit(1); } }); Is something wrong? And how i use data filter (historialCutof)?
  10. I have my site up and running and bots are working correctly the only issue i'm having is when the jackpot ends and the winner is selected the bot holds the items and asks for a mobile confirm before it will send.. Ive been reading around and can't find much help. Any idea on how to fix this? Thanks in advance.
  11. Bot logged, sending me message, online, after 4-5 seconds it's stopping with error tradebot.js:181. Can it work on win10.14393?
  12. Hello all! I want to ask, how I can parse user Steam inventory, because right now steam blocks ip for one minute, if I'm sending 2-3 requests. I'm using node.js, request.js, express.js. Thank you!
  13. Im connected with steam. I want to log off, and then log in. How Can I do it? I've tried doing Client.logOff(), Client.logOn(details); but it returns that im already logged. Thanks in advance
  14. I m creating a website for csgo with steam community. But i have bit confusion on withdraw items and deposit items. Can anyone please help me for this. Which items should be displayed for withdraw items. What are urls for api for depoite and withdraw items.
  15. I am newbie. I must using 2 libs or 1 libs. What the best libs ? Thanks !
  16. website example: opskins.com if we want to buying item, we only chose where is item you want. so, when we have chosen the item, and want to continue to the next stage, we will go to tradeoffer. so my question is, how to be automatically stored directly in the page tradeoffer?
  17. Hey, my tradeBot (only sometimes) crashes right after receiving an offer. I tried to fix it with a friend who is more into coding SteamBots than me, but we weren't able to figure out what is going wrong here. I want to keep the script more or less private since someone made it for me and he doesn't want me to share the full code for it, but this should be enough. Will provide more if needed! var config = require('./config.js'); var SteamUser = require('steam-user'); var client = new SteamUser(); var SteamCommunity = require("steamcommunity"); var community = new SteamCommunity(); var SteamTotp = require('steam-totp'); var mobilecode = SteamTotp.getAuthCode(config.sharedsecret); var TradeOfferManager = require('steam-tradeoffer-manager'); var manager = new TradeOfferManager({ "steam": client, "domain": "http://localhost", "language": "en", "cancelTime": "600000", // 10 minutes "pollInterval": "5000" }); var login = { accountName: config.username, password: config.password, twoFactorCode: mobilecode }; client.logOn(login); client.on('loggedOn', function(details) { client.getPersonas([client.steamID], function(personas) { console.log("============ Logged in ===============================") console.log('== Name: ' + personas[client.steamID]["player_name"]); console.log('== ID64: ' + client.steamID); console.log("======================================================"); console.log(""); }); console.log(); client.setPersona(1); // Shows the status as online. 0 = offline (It will still work though!) 1 = online setInterval(function() { client.webLogOn(); }, 1000 * 60); // Refreshes session every 10 minutes }); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log("Couldn\'t set cookies! Error: " + err); } }); community.setCookies(cookies); community.startConfirmationChecker(10000, config.identitysecret); }); client.on('error', function(e) { console.log(e); process.exit(1); }); community.on("sessionExpired", function(err) { console.log("## Session Expired, relogging."); client.webLogOn(); }); manager.on('newOffer', function(offer) { // When a new offer is received do the stuff below offer.getUserDetails(function(err, me, them) { // Get errors, an object containing the escrow days left and the inventory of the bot and the partner console.log("============ New Offer ==============================="); console.log("== Partner: " + them.personaName); //This is where the error happened! console.log("============ My items ================================")The error is happening in line 78. (The second-last starting with console.log("== Partner: ...)) TypeError: Cannot read property 'personaName' of undefined at C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\index.js:78:43 at Object.exports.makeAnError (C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steam-tradeoffer-manager\lib\helpers.js:33:4) at C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:818:12 at SteamCommunity._checkTradeError (C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steamcommunity\components\http.js:145:3) at Request._callback (C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steamcommunity\components\http.js:52:80) at Request.self.callback (C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steamcommunity\node_modules\request\request.js:186:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (C:\Users\Thomas\Desktop\Coding\Steam Trading\moneyBot\node_modules\steamcommunity\node_modules\request\request.js:1081:10) at emitOne (events.js:77:13) I feel like this error is really weird. Why would personaName be undefined right after receiving the trade? It also handles a lot of trades without any problems, but then suddenly crashes. steam-tradeoffer-manager is running on 2.5.0 and I also reinstalled all modules. Any help is appreciated!
  18. Hello, I was under the impression that the rate limit for requests to steamcommunity.com (for example to fetch someone's inventory) was about 20 per minute per ip. However, today I already start getting http 429 errors after just 4 requests (10 seconds between each request). I also noticed that multiple csgo related website are having issues today, so I was wondering if steam lowered the rate limit or if it's just a temporary thing due to steam having server issues. Also, is there a way to fetch user inventories other than using http://steamcommunity.com/profiles/steam64id/inventory/json/730/2/, that is less prone to steam server issues or rate limits. Thanks in advance.
  19. So i am building a steambot to interact with a website! Is there a specific variable in the item array that i could use to identify the item once the item is given to the bot? I heard that people use assetid but that it can change after making a trade. manager.on('sentOfferChanged', function(offer, oldState) { if(TradeOfferManager.ETradeOfferState[offer.state] == "Declined") { console.log("Declined"); } else if (TradeOfferManager.ETradeOfferState[offer.state] == "Active") { } else if (TradeOfferManager.ETradeOfferState[offer.state] == "Accepted") { offer.itemsToReceive.forEach(function(entry) { console.log(entry.id); }); } else { console.log("Changed?"); console.log(TradeOfferManager.ETradeOfferState[offer.state]); } }); Also, where does the bot get the item data from? I dont see assetid for the items in http://api.steampowered.com/IEconItems_440/GetPlayerItems/v0001/
  20. have a question... 1. So i have made a donation bot. I can accept any incoming offers instantly i can do that fine. 2. (What i want to do but can't) I want to make the bot accept offers automatically if the items a user gives the bot is worth more than what they want. For example, i put 2 $1 skins up for trade with the bot and i want something from the bot which is $5 i want it to decline that, but say if i wanted an item that was $1.50 it would accept it. I can sort out the confirmations easily. Just the code for calculating the items and making the bot decide whether it is a good trade. Here is what i have! (trade code) client.on("tradeRequest", function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", Accepting"); respond(true); }); client.on("tradeStarted", function(steamID){ steamTrade.open(steamID); }); steamTrade.on("ready", function(){ steamTrade.ready(function(){ steamTrade.confirm(); console.log("Trade Confirmed! New items in inventory!") }); })
  21. Hello, I'm currently for fun messing with changing my steam background every few seconds. It works quite well except for the fact that it wipes my profile showcases every time. https://steamcommunity.com/id/iLoveAnime69/ I tried to edit the module myself to get it to work but can't quite do it and can only get 1 to work. I see that there's a comment in profile.js that it's in the TODO but any help would be appreciated. When I read form.serializeArray() and print their names and values it has multiple names called "profile_showcase[]" however when it get's added to the values object array it just overwrites itself and I read that there can't be more than 1 of the same key case 'profileShowcase': var testname = "profile_showcase[]"; values[testname] = settings[i]; .So I just added the above to profile.js and it works for just 1 showcase. I don't really want to use the module to set the showcases, I'd just like them not to be cleared if there was a way to store it directly in the values array that's passed on. Any help would be appreciated and if someone could get it working i'd be willing to Paypal $15 if they'd want
  22. Hi. I got a problem like this and i don't know how to fix it. log.verbose("polldata.json is corrupt"); ^ ReferenceError: log is not defined at Object.<anonymous> (C:\Users\kingwang\Desktop\Trade Offer Bot\bot2.js:55:3) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:139:18) at node.js:974:3 And here is my code if(fs.existsSync(POLLDATA_FILENAME)) { try { manager.pollData = JSON.parse(fs.readFileSync(POLLDATA_FILENAME)); } catch(e) { log.verbose("polldata.json is corrupt"); } } manager.on('pollData', function(pollData) { fs.writeFile(POLLDATA_FILENAME, JSON.stringify(pollData)); }); var logger = new (Winston.Logger)({ transports: [ new (Winston.transports.Console)({ colorize: true, level: 'debug' }), new (Winston.transports.File)({ level: 'info', timestamp: true, filename: 'cratedump.log', json: false }) ] }); var client = new SteamUser(); var offers = new TradeOfferManager({ steam: client, domain: config2.domain, language: "en", pollInterval: 10000, cancelTime: 50000 }); fs.readFile('polldata.json', function (err, data) { if (err) { logger.warn('Error reading polldata.json. If this is the first run, this is expected behavior: '+err); } else { console.log('Welcome back my master.'.green); console.log("Found previous trade offer poll data. Importing it to keep things running smoothly.".info); offers.pollData = JSON.parse(data); } }); client.logOn({ accountName: config2.username, password: config2.password, }); client.on('loggedOn', function (details) { console.log(timestamp("[hh:mm:ss] Logged into Steam as " + config2.username.green)); // If you wanted to go in-game after logging in (for crafting or whatever), you can do the following client.gamesPlayed(440); }); client.on('webSession', function (sessionID, cookies) { console.log("Got web session".info); client.setPersona(1) offers.setCookies(cookies, function (err){ if (err) { logger.error('Unable to set trade offer cookies: '+err); process.exit(1); } logger.info("Trade offer cookies set."); manager.loadInventory(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; } console.log("Found " + inventory.length + " TF2 items"); var ref = inventory.filter(function (item) { return item.name == 'Refined Metal' }); var rec = inventory.filter(function (item) { return item.name == 'Reclaimed Metal' }); var scrap = inventory.filter(function (item) { return item.name == 'Scrap Metal' }); console.log("Found " + ref.length + " Refined Metal"); console.log("Found " + rec.length + " Reclaimed Metal"); console.log("Found " + scrap.length + " Scrap Metal"); var inventory = inventory.filter(function (item) { return item.name == 'Refined Metal' }); var trade = offers.createOffer(admin); trade.addMyItems(inventory); trade.setMessage("Here, have some items!"); trade.send(function(err, status) { if (err) { console.log(err); } else { console.log("Success. Offer was sent to admin.") } }); }); }); }); Any ideas how to fix this problem? Also, my bot is working fine before
  23. Hello, I'm need cancel offer from offerID, this is my code: manager.getOffer(row.offer_id, function(offer, err) { console.log(offer + ", " + row.offer_id); if(!err) { offer.cancel(); console.log("[ERROR] Offer canceled"); //Delete record from MySQL } else { console.log("[ERROR] With cancel offer" + err); } }); The output: null, 1717716013 [ERROR] With cancel offer [object Object] Where I do mistake ? Because I'm getting error.
  24. Hi. I have bot and everything was fine until yesterday. This code is never called community.on('confKeyNeeded', function (tag, callback) { console.log("generirane na kluch"); callback(null, time, SteamTotp.getConfirmationKey(account.identity_secret, time(), tag));}); community.on('newConfirmation', function (confirmation) { console.log("doide nova oferta"); var time = time(); var key = SteamTotp.getConfirmationKey(account.identity_secret, time, 'allow'); confirmation.respond(time, key, true, function (err) { if (err) { console.log("neshto stana s ofertata" + err); return; } });}); This is my login function login(err, sessionID, cookies, steamguard) { if (err) { if (err.message == "SteamGuardMobile") { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret); setTimeout(function () { community.login(account, login); }, 5000); return; } process.exit(0); } account.sessionID = sessionID; account.cookies = cookies; community.getWebApiKey('website.com', webApiKey); community.startConfirmationChecker(60000, account.identity_secret); console.log("startira logina ama nakraq debug" + account.identity_secret);} I change limit to 60000 and same problem. Anyone know if steam changed something ?
  25. How to use it in this new version ? So to draw the best image of the object from the market. Something all the time with me it does not work and does not want to exchange contact me id objects or images.
×
×
  • Create New...