Search the Community
Showing results for tags 'Question'.
-
Question Any way to fetch Spiral Knights ContextIDs?
Lesu posted a topic in node-steam-tradeoffer-manager
Greetings, Is there any way to fetch contextIDs from Spiral Knight user inventories? I'd give more information, but there's really nothing more to it. If it could be possible, I'd like to load user inventories from Spiral Knights in order to implement trades for it, however this specific game's contextids are quite dynamic and I'd need to know them for to load inventories, or some range to test from, whatever way would make this possible. Many thanks for your attention. -
Question Please tell me there is fix for that...
hb1337 posted a topic in node-steam-tradeoffer-manager
I am having an issue with the recieved trades, here is the log: 2016-08-28T21:20:18.417Z - info: -------------------------------------------------------------------- 2016-08-28T21:20:18.418Z - info: [bOT] New offer #1483101417 from STEAMID64: 765611981081644772016-08-28T21:20:18.455Z - info: [bOT] Partner: 76561198108164477 has a balance of: 0$.2016-08-28T21:20:18.456Z - info: MAG-7 | Metallic DDPAT (Factory New)2016-08-28T21:20:18.457Z - info: Sawed-Off | Yorick (Minimal Wear)2016-08-28T21:20:18.457Z - info: Falchion Case2016-08-28T21:20:18.458Z - info: Operation Breakout Weapon Case2016-08-28T21:20:18.504Z - info: 0.042016-08-28T21:20:18.504Z - info: [bOT] [D] The trade costs: 0.042016-08-28T21:20:18.541Z - info: 0.152016-08-28T21:20:18.541Z - info: [bOT] [D] The trade costs: 0.192016-08-28T21:20:18.583Z - info: 0.032016-08-28T21:20:18.583Z - info: [bOT] [D] The trade costs: 0.222016-08-28T21:20:18.620Z - info: 0.032016-08-28T21:20:18.620Z - info: [bOT] [D] The trade costs: 0.252016-08-28T21:20:18.706Z - info: [bOT] [D] User STEAMID64: 76561198108164477 offered a deposit trade. Look for everything is ok with the trade.2016-08-28T21:20:22.452Z - error: [bOT] [D] Unable to accept offer 1483101417: Cannot load new trade data: Data temporarily unavailable2016-08-28T21:20:22.672Z - info: --------------------------------------------------------------------Whats that?When this happens if its a deposit it doesnt send data to the mysql db so the player doesnt get the money on their balance but the trade is accepted... -
So, sorry for my noobness, how do you generate shared secret to use with 2FA (steam-totp)?
- 2 replies
-
- node.js
- node-steam-user
-
(and 1 more)
Tagged with:
-
Hello guys, im currently getting TradingPartners Inventory from Steams Json Api like this: http://steamcommunity.com/profiles/STEAMID/inventory/json/730/2 In gernal, there seems to be no AssetId which i need to add the Item to the trade offer. Some items contain the assetID in the "view Ingame" link so i could parse it. It looks like that: steam://rungame/730/SteamID/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D7116476999790771279 So there is a assetId i could use but im not even sure if its the real Items Asset Id of my TradePartners Inventory or just from an Steam CSGO Item to display it. Anyways, for Items like CSGO Cases, there is not even a a link which contains a assetId. How should i provide the Item Informations which TradeOffersManager need? Is there acually any way to use this Steam Api for the trades? Thanks!
-
As the title says how can i check 1 offer at a time?
-
Hi guys! I do not know and where to start. I want to make steam bot. On the Internet, many libraries for this, but I settled on (this) because there is someone to ask. What I have in stock: Steam account, which can make and receive exchange Look like that's it. Questions: To begin, I just want to make the authorization, as I realize it is from my computer via a bot. How can I do it? So as for Steam authentication requests from the phone key. Please help experts!
-
Is there a full example of a bot that sends trade offers and then confirms using startconfirmationchecker as i always get this error once the method is called. Am i just missing something? https://gyazo.com/a59aa36fed4a641325a926e41ccb890f steamClient.on('logOnResponse', function(logonResp) { if (logonResp.eresult === Steam.EResult.OK) { console.log('Logged in'); steamFriends.setPersonaState(Steam.EPersonaState.Online); steamWebLogOn.webLogOn(function(sessionID, newCookie) { getSteamAPIKey({ sessionID: sessionID, webCookie: newCookie }, function(err, APIKey) { offers.setup({ sessionID: sessionID, webCookie: newCookie, APIKey: APIKey }); fetchtradeurl(); offerItems(); community.startConfirmationChecker(10000, identity_secret); }); }); } });
-
For some reason I consistently get this error after receiving a trade offer. steam_bot.js:217 if (them.escrowDays <= 0) { ^ TypeError: Cannot read property 'escrowDays' of undefined at /home/teslim/steam-bot/steam_bot.js:217:17 at Object.exports.makeAnError (/home/teslim/steam-bot/node_modules/steam-tradeoffer-manager/lib/helpers.js:33:4) at manager._community.httpRequestGet (/home/teslim/steam-bot/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:752:12) at SteamCommunity._checkCommunityError (/home/teslim/steam-bot/node_modules/steamcommunity/components/http.js:129:3) at Request._callback (/home/teslim/steam-bot/node_modules/steamcommunity/components/http.js:51:88) at Request.self.callback (/home/teslim/steam-bot/node_modules/request/request.js:187:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/home/teslim/steam-bot/node_modules/request/request.js:1044:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7)
-
Firstly I would like to say that you made amazing job! I have a few questions and suggestions. Questions: 1) createAccount() works great. But If I understand correctly It creates accounts through Steam client. Is it safe to create for example 30 or more accounts at once? Does Steam register my machine ID or just IP when I am using this function? 2) Is it possible to change account store country? (not profile country) 3) Is it possible to change email or password? If not, Is it hard to implement this kind of functionality?
-
I've read posts below but. I have 429 error while retrieving a apiKey (setting it manually doesn't really work (btw why?)). Interesting thing that I did change IP, vps and waited about a week and it seems like this bot still doesn't work. is my account banned or what?
-
Hello I have a couple of questions regarding the tradeOffers event and changes in trade offer states. Is the tradeOffers event only emitted when receiving a new trade offer? Is there an event that is emitted when a trade offer changes state? Is the only way to detect changes in trade offer states to poll Steam API GetTradeOffers? What are the rate limits of Steam API GetTradeOffers, is it based on IP Address or Steam Account, or?Thank you for any support, really loving your libraries.
-
Hey, I'm currently rewriting my bots due to all those new goodies which been developed in the last year (shoutouts to McKay and everyone working on these). Currently debugging everything and saw that calling JSON.stringify on pollData returns undefined. Had a look at the original pollData and dug a little into the JSON.stringify manual. The manual's saying, that the method will return undefined if a part of the data is a function. Always thought that it would simply omit the function. (tested pre submitting: yep, everything I tried resulted in omitting the Function when calling stringify on the object). Either way, Im at a loss here. Here's a Screenshot of the pollData (this is pre stringifying and right at the beginning of the pollData): and here's my event handler: prototype._onPollData = function onPollDataCallback(data) { var that = this; try{ var write = JSON.stringify(data); }catch (e){ console.log(e); //pls lemme find some } console.log(util.inspect(data, false, null)); fs.writeFile('./bots/pollData/' + that.botName + '.json', JSON.stringify(data), function(err) { if (err){ console.log(err); } return; }); }; I guess that I simply am screwing up somewhere and am just to tunneled to see it but wanted to make sure, if that [Function] really belongs there. Cheers
- 2 replies
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
Hello, im trying to confirme trades using php and curl https://steamcommunity.com/mobileconf/ajaxop?op=conf&p=android:{DevideID}&a={SteamID}&k={CurrentMobileGuardCode}&t={Time}&m=android&tag=conf&cid={TradeofferID} but i get this response {"success":false} maybe you guys can help with the parameters and the link to get it to work
-
What tools to use for getting information about steam api status ? very often steam api goes down, how properly to check if any troubles exist ? edit: Basicaly i want this status list from https://steamstat.us/ Steam Store - Normal Steam Community - Normal Steam Web API - Normal CS:GO Services - Normal var SteamWebAPI = require('@doctormckay/steam-webapi'); looks what i need. but what iface to use ? edited: discovered http://is.steam.rip/api/v1/?request=IsSteamRip cool!!!
-
Question How to get wear of sticker on a weapon?
Duck posted a topic in node-steam-tradeoffer-manager
How to get wear of sticker on a weapon? I found it on this page API GetPlayerItems... But this page does not work very often. Is there a way to get the other way? -
Hello ! How should i properly handle this error ? I wrapped offer.accept into Promise and when i catch error then i get errCode and if errCode === 28 what way to re-accept this offer properly ? should i return false and then try to accept offer again ? or update somehow ?
-
Hi! I'm trying to send an offer from one account to another. I'm relative new to programming. Here is the code: var TradeOfferManager = require('steam-tradeoffer-manager'); var SteamID = TradeOfferManager.SteamID; var sid = new SteamID('[MY_STEAM_ID]'); sid.type = SteamID.Type.INDIVIDUAL; sid.instance = SteamID.Instance.DESKTOP; var SteamCommunity = require('steamcommunity'); var SteamTotp = require('steam-totp'); var SteamUser = require('steam-user'); var client = new SteamUser(); var community = new SteamCommunity(); var manager = new TradeOfferManager({ "steam": client, "domain": "MY_DOMAIN", "language": "en" }); // Steam logon options var logOnOptions = { "accountName": "MY_STEAM_USERNAME", "password": "MY_STEAM_PASSWORD", }; client.logOn(logOnOptions); client.on('loggedOn', function() { console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID()); }); // Send offer var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=MY_STEAM_PARTNER&token=MY_STEAM_TOKEN"); manager.loadUserInventory(sid, 730, 2, true, function(err, myItems) { if(err) { console.error(err); return; } console.log(myItems[3]); offer.addMyItem(myItems[3]); offer.setToken("MY_STEAM_TOKEN"); offer.setMessage("Transferring my stuff"); offer.send(function(err) { console.log(err); }); });The output is the following: Logged into Steam as [U:1:MY_STEAM_ID] CEconItem { id: '6763577968', classid: '310778073', instanceid: '302028390', amount: 1, pos: 3, assetid: '6763577968', contextid: '2', appid: '730', icon_url: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpovrG1eVcwg8zAaAJF_t24nZSOqPrxN7LEmyUB6pwl2r2U84-h2VG1-hA6MWimJ4GRIAU2NAmC-QLvkLjsjJftup3L1zI97T2fu0Hu', icon_url_large: '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpovrG1eVcwg8zAaAJF_t24nZSOqPrxN7LEm1Rd6dd2j6eR99Wh2ADhrRBoYjyiJdXDIAdrYl_UqFK2lL-9hsXt7cvKwHMyvCAg-z-DyIQOpr_N', icon_drag_url: '', name: 'P2000 | Granite Marbleized', market_hash_name: 'P2000 | Granite Marbleized (Field-Tested)', market_name: 'P2000 | Granite Marbleized (Field-Tested)', name_color: 'D2D2D2', background_color: '', type: 'Industrial Grade Pistol', tradable: true, marketable: true, commodity: false, market_tradable_restriction: 7, descriptions: [ { type: 'html', value: 'Exterior: Field-Tested' }, { type: 'html', value: ' ' }, { type: 'html', value: 'Accurate and controllable, the German-made P2000 is a serviceable first-round pistol that works best against unarmored opponents. It has been painted in a marbleized pattern.' }, { type: 'html', value: ' ' }, { type: 'html', value: 'The Italy Collection', color: '9da1a9', app_data: [Object] }, { type: 'html', value: ' ' } ], actions: [ { name: 'Inspect in Game...', link: 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D14285500353088769102' } ], market_actions: [ { name: 'Inspect in Game...', link: 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20M%listingid%A%assetid%D14285500353088769102' } ], tags: [ { internal_name: 'CSGO_Type_Pistol', name: 'Pistol', category: 'Type', category_name: 'Type' }, { internal_name: 'weapon_hkp2000', name: 'P2000', category: 'Weapon', category_name: 'Weapon' }, { internal_name: 'set_italy', name: 'The Italy Collection', category: 'ItemSet', category_name: 'Collection' }, { internal_name: 'normal', name: 'Normal', category: 'Quality', category_name: 'Category' }, { internal_name: 'Rarity_Uncommon_Weapon', name: 'Industrial Grade', category: 'Rarity', color: '5e98d9', category_name: 'Quality' }, { internal_name: 'WearCategory2', name: 'Field-Tested', category: 'Exterior', category_name: 'Exterior' } ], is_currency: false, market_marketable_restriction: 0, fraudwarnings: [] } Error: HTTP error 401 at SteamCommunity.manager._community.httpRequestPost (/srv/SteamTrade/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:477:31) at Request._callback (/srv/SteamTrade/node_modules/steamcommunity/components/http.js:62:14) at Request.self.callback (/srv/SteamTrade/node_modules/request/request.js:187:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/srv/SteamTrade/node_modules/request/request.js:1044:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (/srv/SteamTrade/node_modules/request/request.js:965:12) at emitNone (events.js:91:20)I couldn't get steam-totp to work (getAuthCode() that is), could this be the issue - that the account isn't logged in correctly? Why I suspect this might be the issue is because manager.loadInventory(730, 2, true, function(err, myItems)didn't work, while manager.loadUserInventory(sid, 730, 2, true, function(err, myItems)works. If not, what else could be the issue? Thankful for answers, Andreas
- 1 reply
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
hello, im trying to make a steam trade bot (and im not so good with coding). i found this code to send trade offer but i don"t know how to add items var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=0000000&token=xxxxxxx"); manager.loadInventory(730, 2, true, function(err, myItems) { if(err) { console.error(err); return; } offer.loadPartnerInventory(730, 2, function(err, theirItems) { if(err) { console.error(err); return; } offer.addMyItem(myItems[0]); offer.addTheirItem(theirItems[0]); offer.send(""); }); }); }); let's say i want to : send 2 items with id 6908727870 and id 6901768067 and recieve 2 items with id 847548541 and id 325415748 please just help me filling these ids in the code above to serve like an example for me. thank you so much
-
friends.on("friendMsg", function(user, msg, type, details){ if(type == Steam.EChatEntryType.ChatMsg){ if(msg == "invite"){ client.on("getSteamLevels", function(user, callback){ client.getSteamLevels(user, callback) callback(results); if(results >= 10){ client.inviteUserToGroup(user, "steamgroupidhere") } }); } } }); Thats my code.Whats wrong it with?
-
To my understanding Steam's api's Inventory has a IP rate limit. I read this post https://dev.doctormckay.com/topic/203-using-loaduserinventory-on-1-bot/?hl=inventory and I'm not understanding how making 100 inventory calls/min results in the need for only 5 ip's? Each IP being able to make 2 requests per minute results in a maximum of 10 inventory calls. Sorry if this is obvious, I just don't understand it.
-
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!
-
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?
-
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: