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. If I want to connect my website and node.js server I would need to put the ip of the server in my source code but isn't this unsafe because everyone is able to see this if you use javascript, and people could like attack it or something? Also is using socket.io generally the 'best' way to connect a bot and a website or would using socket.io be called 'non-proffesional' and what other options exist? I also haven't seen a big site using socket.io so that makes me wondering, or do they hide it somehow?
  2. Is it possible to get a list of all CS:GO or PUBG items?
  3. How to delete crates automatically with the tf2 package
  4. Hey! I'm kinda new to node, and to async programming at all. So I'm sending multiple trade offers with a for loop and Im getting a null offer.id on them. I understood that I have to do a callback but I don't know how. Can you please tell me how to do a callback on the offer.send function. Thanks in advance!
  5. var trade = manager.createOffer(steamid); trade.setMessage('ID:' + drop.id + ', Item:' + drop.market_hash_name + ', Steam ID:' + steamid + ', token:' + tradetoken); trade.setToken(tradetoken); trade.addMyItem(drop); console.log(trade) return: TradeOffer { partner: SteamID { universe: 1, type: 1, instance: 1, accountid: 389643249 }, id: null, message: 'ID:21851, Item:Baseball cap, Steam ID:76561198349908977, token:fGUAlI2j', state: 1, itemsToGive: [ { id: '1234567890123456789', //steamid assetid: '1234567890123456789', //steamid appid: 578080, contextid: '2', amount: 1 } ], itemsToReceive: [], isOurOffer: true, created: null, updated: null, expires: null, tradeID: null, fromRealTimeTrade: false, confirmationMethod: null, escrowEnds: null, rawJson: '' } trade.send(function (err, status) { if (err) { logger.error('Bank sendTrade error trade.send'.blue + err); return; } if (status == "sent" || status == "pending") { ... } }) trade.send return error: There was an error sending your trade offer. Please try again later. (26) This error only for PUBG items. CS GO and Dota send without problems. I noticed that the items have a unique id that is 8 characters longer than VS GP and STEAM How to solve this problem? Thank you in advance for your help
  6. Hi. How can I restrict the input of the trade link if I want to save it for each user via my website? For example, if instead of the trade link I put google.com, if I send a trade, it will give me this error: throw new Error("Unknown SteamID input format \"" + input + "\""); ^ Error: Unknown SteamID input format "google.com"Any idea on how to stop this from happening?
  7. Hello guys, i've got a problem which my brain cant solve Bot should send message to admin (via steam chat) after accepting trade offer (for example), but he dont do it.. Thats my not working code: manager.on('newOffer', (offer) => { if (offer.itemsToGive.length === 0) { offer.accept((err, status) => { if (err) { console.log(err); } else { console.log(`[!]Trade Accepted! Status: ${status}.`); client.chatMessage(76561198074539527, 'Trade accepted! Check bot's inventory!'); }
  8. Sorry for my English. Today one of the proxy stopped working, I had to buy a new one. I sent the test trade to bot, and it accept trade immediately. The difference with the old ip is very noticeable, before bot accept trades for 20-40 seconds. I suspect that Steam imposes sanctions on the bot for exceeding the number of requests and translates it with a slow mode. Two options come to mind immediately: limit the number of requests or change the proxy once per hour. But I'm not sure that a proxy change will help. In this regard, questions. 1. How to avoid sanctions? 2. What is the limit of requests to not get slow mode? I hope that you can help with information and I can give it to the my programmer.
  9. I have a problem restoring cookies after a Bot looses its webSession. I call SteamUser.webLogOn but don't get an webSession callback at all. Currently I have 3 Bots running parallel on the same host. After about 1-2 days (sometimes even 7 days!) one of the three won't get a webSession ever again. The other 2 still run great and webSession fires normally for them. I setup a cronJob which refreshes the Login and calls webLogOn every hour and I also call it on sessionExpired. I logged the client error output but it won't throw any error. Code: https://pastebin.com/jYaDE45x Log: 26-07-2017 21:23:05: STEAMBOT Steam session expired: xx - Error: Not Logged In 26-07-2017 21:23:05: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 1385.8219997882843s ago 26-07-2017 21:23:05: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 00:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 9414.178000211716s ago 27-07-2017 00:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 03:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10799.992999792099s ago 27-07-2017 03:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false 27-07-2017 06:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10800.00100016594s ago 27-07-2017 06:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
  10. Hey. I need help. My bot is randomly or after spamming Session Expired will be disconnect. At the same time internet-connection is stable. Why is this happening? Logs: http://ibb.co/gvnUyR http://ibb.co/hnA2k6 Code: community.on('sessionExpired', function (err) { console.log("## Session Expired, relogging."); client.webLogOn();​}); setInterval(function () { count++; console.log("## Session: " + count + ", relogging..."); client.webLogOn();}, 10 * 60 * 1000); client.on('disconnected', function (eresult) { console.log("Disconnected from Steam. Reason '"+SteamUser.EResult[eresult]+" ["+eresult+]'");}); client.on('webSession', function (sessionID, cookies) { manager.setCookies(cookies, function (err) { if (err) { console.log(err); process.exit(1); } else { community.setCookies(cookies); community.chatLogon(); inv.getInventory(client.steamID).then(inventory => { currentInventory = inventory; client.gamesPlayed("B: " + (1000 - Object.keys(currentInventory).length) + " ? " + config.prices.buying_price + " руб | S: " + Object.keys(currentInventory).length + " ? " + config.prices.selling_price + " руб"); }) .catch(err => { console.log(err); }); } });});
  11. Hello McKay. First of all I wanna say thank you for your contribution. I saw all these node-steam-* modules and came this forum. I wanna say I'm proud of you and you are doing great libraries here. I'm a deeply experienced javascript developer. If you have some problems to fix or maintain some modules, maybe I can help you. NOTE: I don't know anything about steam dev api and how trade works... Can we have some section for contributors talk about internal issues? That way I can learn very fast how steam trade works and other stuffs too... Maybe 'Developers' or 'Contributors' might be good name for new section. What do you think? BTW: If I did something wrong please forgive me. I don't have much experience with Forum
  12. Is that possible to make the bot crosscheck the listing price of the bp.tf website?
  13. Hello, is there a function / method to redeem wallet code? I want my bot to have command to redeem wallet code via chat message..
  14. Hello, I have problem getting new assetid's after trade. Sometimes steam is just giving bad new assetid. I tryed offer.getReceivedItems() and offer.getExchangeDetails(). For example: - offer.getReceivedItems() - https://pastebin.com/9BHN8zQK - offer.getExchangeDetails() - https://pastebin.com/B83595WH but new item have completely different assetid: https://pastebin.com/xKT0pQmr Steam is still showing wrong assetid it only happens with first item of trade rest have good id's. There is a solution to fix this, because this bug is annoying?
  15. Hello, I'm writing very rarely in the forum, I usually solve problems, but this one exceeded me There was a problem getting new identifiers from the accepted offer. (offer.getReceivedItems()). The problem is very rare and again retrieving IDs does not help. There are 21 items available. Only one item has invalid identifiers, and owner value is "0" instead of openID account. Link to account on which are the items from the offer:https://steamcommunity.com/profiles/76561198361335405/inventory/json/730/2 Link to the JSON file with the content of the offer:https://pastebin.com/06HRjeSU Please press Ctrl + F and search "id" : "12569687364". This item has returned an invalid identifier and the value "owner". The correct ID is 12702283129. classid and instance id is valid. The remaining 20 items are correct.
  16. Hello! How to implement this function: So for example sets lets say your profile id number is 1234567892 The bot is told to get the first number 1234567890 It ads it to the profile link and gets http://steamcommunity.com/profiles/1234567890 Then the coding tells the bot to load the page and look for error messages Error message found, it now goes to the next one... 1234567891 it loads up http://steamcommunity.com/profiles/1234567891 gets an error message it loads up http://steamcommunity.com/profiles/1234567892 It doesn't get an error message. Code for the bot now tells it to load the code for adding the account as a friend.
  17. Hello everyone. I have a this script but script has a some problems. I put 300 Gems in trade offer but this script dont look the amount, its just see like 1 item. (1=300=1000=∞). I need to fix it. (300 Gems = 300 Gems) Can you help me ? Sorry for my bad English :| const SteamUser = require('steam-user'); const TradeOfferManager = require('steam-tradeoffer-manager'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const fs = require('fs'); const request = require('request'); const config = require('./config.json'); const prices = require('./prices.json'); const community = new SteamCommunity(); const client = new SteamUser(); const manager = new TradeOfferManager({ steam: client, domain: 'example.com', language: 'en' }); /* Polling Steam and Logging On */ client.logOn({ accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret) }); /* Getting prices */ const priceUrl = prices; function getPriceList() { } function priceItemsInOffer(offer) { let offerValue = 0; if (offer) { const prices = require('./prices.json'); //Requiring price file //Loop through offer and get total price for (var x in offer) { prices[offer[x].market_hash_name] >= config.options.minPricePerItem ? offerValue += prices[offer[x].market_hash_name] : null; } } return offerValue; }
  18. hello how to get if added friend is in-game (cs:go) if not remove him from friends because i have this code to get players rank after bot accept friends request but the bot is crashing if the bot is not in csgo
  19. Hey, I was wondering if there's any way to check for group comments every 10 minutes, then, if there's a new comment received, put it through a regex to prevent trading/spam, then, if it matches, ban the user. Thanks.
  20. Hi! How to run two different scripts in one PC? I can find this: logonID - A number to identify this login. The official Steam client derives this from your machine's private IP (it's the obfustucated_private_ip field in CMsgClientLogOn). If you try to logon twice to the same account from the same public IP with the same logonID, the first session will be kicked with reason SteamUser.EResult.LogonSessionReplaced. Defaults to 0 if not specified. If i run second script my first script stop working with error LogonSessionReplaced. What i need to do? Or how second can use session of first? Maybe its real to make one script only for auth which gives to others sessionID and cookies?
  21. Hello, Is it possible for an item to get back to inventory with other assetid after offer is canceled by a bot?
  22. Hello, Can we pause/resume event sentOfferChanged or check it manually? Thanks for answer
  23. Okay. I have a script to accept offers and so.. And it was working fine, and nothing has changed. And one day it started to show me the error, and script not working anymore at all. I simplifyed the code to find out the error.. This is the Code: const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const config = require('./config.json'); const client = new SteamUser(); const logOnOptions = { accountName: config.username, password: config.password, twoFactorCode: SteamTotp.generateAuthCode(config.shared_secret) }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('LoggedOn to Steam'); }); And this is the error: Logged into Steam C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components\friend s.js:494 groupList[friend.nGroupID].members.push(sid); ^ TypeError: Cannot read property 'members' of undefined at C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components \friends.js:494:29 at Array.forEach (<anonymous>) at SteamUser._handlers.(anonymous function) (C:\Users\ron1\WebProjects\Trade Offers3\node_modules\steam-user\components\friends.js:491:19) at SteamUser._handleMessage (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-user\components\messages.js:216:29) at emitThree (events.js:135:13) at CMClient.emit (events.js:216:7) at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-client\lib\cm_client.js:323:8) at CMClient.handlers.(anonymous function) (C:\Users\ron1\WebProjects\TradeOf fers3\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod ules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:115:13) Can someone help me to understand why is this happening?
  24. https://imgur.com/a/5A5Gg I'm doing a trade with this guy name lucky. He does trading by op skins and on his bio, it tell you how the trade works. I'm not sure if this is real but wants to make sure I don't get my skins stolen. http://steamcommunity.com/id/Zumaba_buyANDsell_096663551321 (lucky's steam URL) How the trade works: 1. You send me an offer , With the code given, then confirm on mobile, 2. BOT will be notified from OPSkins then I will Click "Confirm" to deliver. 3. BOT will make a counter offer to the offer that you send with the skins that you want. 4. Respond the counter offer of the OPskins BOT with the skins/items we agreed. 5. We click accept at the same time. 6. Trade is Done! does this kind of trade exist in OPskins??
×
×
  • Create New...