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. 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.
  2. 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/
  3. 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!") }); })
  4. 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
  5. 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
  6. 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.
  7. 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 ?
  8. 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.
  9. Hello, this is my code var offer = manager.createOffer(row.trade_url); offer.addTheirItem({"appid": 730, "contextid": 2, "assetid": row.assetid}); offer.send(function(err, status) { if (err) { console.log("[ERROR] Sending offer - " + err); } else { console.log("Offer #" + offer.id + " " + status); } console.log(status); }); Everything works, but can I check If he have mobile authentificator on?
  10. Hi! I'm tryng to use changePassword function, but it returns eresult: 8 It doesn't works, or I just use it wrong? Thanks. There is the sample code which I use: client.requestPasswordChangeEmail(password, function(err) { console.log("Req: "+ err); var rl = require('readline').createInterface({ "input": process.stdin, "output": process.stdout }); rl.question('Code: ', function(code) { client.changePassword(password, newpassword, code, function(err) { console.log(err);} ); console.log(code); rl.close(); }); });
  11. Alright so the title says it all, i'm fairly new to Steam bots. I'm trying to make it so it only accepts CSGO keys i know the code below is horrible, but if someone could point me in the right direction it would help a lot. offers.on('newOffer', function (offer) { console.log("New offer #"+ offer.id +" from "+ offer.partner.getSteam3RenderedID()); // Accept any trade offer from Admin. if (offer.partner.getSteamID64() === config.admin && appid === appid.CSGO){ console.log("ADMIN offered a trade. Trying to accept offer."); offer.accept(function (err) { if (err) { console.log("Unable to accept offer "+ offer.id +": " + err.message); } else { console.log("Offer accepted because ADMIN sent the offer"); } }); } else { //Otherwise deny it and message the user console.log("User "+ offer.partner.getSteam3RenderedID() +" offered an invalid trade. Declining offer."); offer.decline(function (err) { if (err) { console.log("Unable to decline offer "+ offer.id +": " + err.message); } else { console.log("Offer declined"); // Message the user client.chatMessage(offer.partner.getSteamID64(), "Invalid offer."); } }); } }); I know it also only accepts if its the admin, that's just for testing.
  12. Hello everyone! Just a really quick question. Let's say I want my bot to run 24/7. How can I make sure it won't stop at all? I don't really mean like: 1. Keep your computer / bot running on your local machine 24/7. 2. Buy a VPS and run the bot on that machine. Because that is quite obvious. I mean like, the session not expiring. Is the following code enough to make sure that my steambot runs 24/7 on a Raspberry Pie for example? client.on("webSession", function(steamID, cookies) { logger.debug("Got web session"); setInterval(function() { client.webLogOn(); }, 1000*60*60); /* And some more stuff which need cookies */ });Thanks for your help!
  13. Getting a error when trying to execute this code: community.httpRequestPost('https://steamcommunity.com/market/sellitem/', { form: { sessionid: community.getSessionID(), appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: 10000 // 10000 == $100 }, headers: headers, json: true }, (err, response, json) => { if(err) { console.log(`Sell item HTTPREQUESTPOST error: ${err.toString()}`); return; } console.log(json); }, "steamcommunity"); My headers are: 'Host': 'steamcommunity.com','Origin': 'https://steamcommunity.com''Referer': 'https://steamcommunity.com/market/''User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36','X-Prototype-Version': '1.7','X-Requested-With': 'XMLHttpRequest', Cookies: (first 4 getting from node-steam-tradeoffer-manager)steamLoginsteamLoginSecuresteamMachineAuthsessionidwebTradeEligibility (from your's reddit post)strInventoryLastContext=730_2Steam_Language=english I've tried to do request from REST Client with client's account cookies, headers, and it works (from client, not from node).
  14. if i want make bot for csgo. do i have to have games on my steam account? or only my inventory? or what are the requirements of my account so that could be a bot?
  15. Hello! Thanks in advance! With node-steam-user can i fetch/take Steam IDs from my BOT`s friend list ? and after make a loop with friends`s Steam IDs to find more Steam IDs from their friend list..
  16. I've created lots of accounts with the bluestacks-android emulator, because I thought that I could just access my files there easily, but it doesn't seem like it. Does anyone know how I can root this emulator, or do it without rooting it? Thanks!
  17. What is the method to make this? By example if I type: !createlisting <itemname> I will create a listing for the item with a random decimal price. Thanks in advance if you just tell me how to create it will be appreciated.
  18. Hello everyone! This might have been answered before, but I tried to find it everywhere, but I'm still not 100% sure. I'd like to use my bot with trade offers, however when I try to set the cookies for the tradeoffer-manager, it fails. I'm pretty sure this has to do with my limited account, since it is unable to fetch an API Key. So I'd like to be 100% sure, before I put some money into Steam: Do I need to get rid of the limited status of my account before I can fully use the trade offers? (and is this because we can't fetch the API Key and therefore we can't set the cookies?) Thanks for your help and I hope that this question will help some other people out as well who were just curious or had the same question.
  19. How do I use the on 'save' and on 'read' functions? When I'm doing it like this: const user = new SteamUser(); user.logOn(); user.storage.on('save', function(filename, contents, callback) { // filename is the name of the file, as a string // contents is a Buffer containing the file's contents // callback is a function which you MUST call on completion or error, with a single error argument // For example: console.log(filename, contents, callback); }); user.storage.on('read', function(filename, callback) { // filename is the name of the file, as a string // callback is a function which you MUST call on completion or error, with an error argument and a Buffer argument // For example: console.log(filename, callback); });I just get the output on start of my electron app: cellid-86[...].txt 91 (err) { if(callback) { callback(err || null); } } servers.json [91, 10, 9…] (err) { if(callback) { callback(err || null); } } So first this 'cellid-...txt' file and then the 'server.json'. But when I start an actual game via steam and close it the 'save' or 'read' event functions aren't called.
  20. hi i wanted to ask if and when yes how i can bind ips in node-steam-user like here https://github.com/DoctorMcKay/node-steam-client#cmclient
  21. http://steamcommunity.com/app/{gameID}/tradingforum/ or http://steamcommunity.com/app/{gameID}/tradingforum/{postID}And i need there to edit a Thread. I can not find such a function. Can you help me ?
  22. Hello, I'm really new to node.js and everything that comes with it and for now I'm really enjoying it! However, I've run into a problem, which has more to do with cosmetics than anything else. friends.on("friendMsg", function(steamID, msg, type) { var steamName = client.getAliases(steamID, function(err, results) { if (err) { console.log(err); } else { console.log(results); } }); if (type == Steam.EChatEntryType.ChatMsg) { console.log("Friend message from " + steamName + ": " + msg); if (msg == "Ping") { friends.sendMessage(steamID, "Pong"); console.log("Send back: Pong"); } else { friends.sendMessage(steamID, config.greetMsg); console.log("Send back the standard reply"); } } }); When someone sends a message to the bot, it returns a standard greeting. Well that works great. Even the fact that when a user types: "Ping" it returns "Pong". The problem is the fact that I want to see this in the console: "Friend message from " + steamName + ": " + msg Right now, I've got it working that the steam name is shown as the steam64 ID (not in this code), but for aesthetics, I'd like to see the current username of the person the bot is chatting with on Steam. It seems like this can be achieved with .getAliases or .getPersona, but I can't seem to get it to work. Could someone help me out with this or is it just not possible? Thanks a lot!
  23. So, I'm currently working on developing a trading bot for my website, instead of letting someone else do it, as there's only one way to gain experience. So far I have managed to do somewhat of a decent job, it works. But I have come to a point where I would need to do so it does not trade with users that are in escrow. This should preferably be checked during the process of making the offer. I have read, and tried what have been given in this thread - https://dev.doctormckay.com/topic/623-decline-trade-hold/ - but have reached the point of where I'm unsure of what to do, and seeking help from someone who have more knowledge than me with this. So I hope there's someone who's able to help, or point me in the right direction. Thanks in advance.
  24. Hey i'm building a scrapbanking but i don't know how to make the bot craft scraps with weapons. Can you help me ?
  25. Hello i want a in-bot convertor by example if I type: 10.11 it will answer 10 REFS and 0 REC and 1 SCRAP. How can I do this please reply me ;(..
×
×
  • Create New...