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. Probably this is not an issue of node-steam-tradeoffer-manager, but just a "wonderful steam" glitch. Nevertheless, it is a very strange one and extremely bad one. When our bot's receive the items (when the bot's sentoffer is accepted) the items assetids in the receipt (and also in our database of course) doesn't always match the actual asset id's in steam bot inventory. This hasn't ever happened before, but it began like about 1 week ago. Before, our system was running for about half year without troubles. I have manually rechecked the trade offers, which used to return wrong assetid's for items, and those assetid's do actually exist in receipt, but in steam inventory, it show's up with completely different assetid. Have anyone ever encountered this issue before? What are the possible ways to solve it? EDIT 1: Have to clarify a little bit - This has happened now about like 5 times. It is a very rare case, but a case nevertheless. Usually, when this happens, not all of the item's Asset ID's a different, but just a few, usually 1 or 2 out of whole offer. For example, there are 10 items in the receipt. 8 Items from the receipt are with correct Asset ID's and 2 items assetid's wouldn't match the real one's in inventory. To get the items "getReceivedItemsAsync" function is used. Async, because using bluebird promises library.
  2. sclient.on('groupRelationship', (steamid, relationship) => { groupSteamID = steamid; if(relationship === 2) { dbot.channels.get('302817074269519873').sendMessage('You have been invited to this group: "' + groupSteamID + '" \n If you want to accept the group request, reply with ``!accept group``. \n And if you want to decline it, reply with ``!decline group``.'); console.log('New group invite to this group: "' + groupSteamID + '"'); } }); if (command === "accept-group") { sclient.accept(groupSteamID) = true; dbot.channels.get('302817074269519873').sendMessage("Accepted group invite: " + friendrqst); console.log("Accepted group invite: " + friendrqst); } if (command === "decline-group") { sclient.accept(groupSteamID) = false; dbot.channels.get('302817074269519873').sendMessage("Declined group invite: " + groupSteamID); console.log("Declined group invite: " + groupSteamID); } I am using the node-steam module and the discord.js module just for you information. sclient.accept(groupSteamID) is not a function is my error when I try to accept/decline the invite
  3. Hello, i found up that steam sometimes return status 8 after sending offer and change asset ids for sent items. My question is how to get new asset ids for this bugged offer? Is it possible to get it for this 1 offer or should i get whole inventory and check items that are not assigned to database and assign them by name?
  4. How can I get a groups/users name except the steam64id/groupid? Currently I just get something like this for a group: 103582791456793547 Or for a user his Steam64ID
  5. To make interactions with bots and alts easier, I wanted to get an autoaccept-script going, that simply accepts everything where the itemstogive.length ==0. This is my code: manager.on('newOffer', function (offer) { accept(offer); }); function accept(offer) { if (offer.itemsToGive.length == 0) { offer.accept(true, function (err) { console.log("offer.State: " + offer.state); if (err) { console.log("error: " + err); console.log("offer.State: " + offer.state); if (!(offer.state == 3 || offer.state == 6 || offer.state == 8)) { setTimeout(accept(offer), 3000); return; } } }); Sometimes just nothing happens, and the offer gets ignored completely. My guess is, that the trade-offer is buggy at the beginning (no items show on both sides), and that offer.itemstogive.length is undefined then, and my if is never true? Its quite hard to debug it for me, since this "error-case" isn't really reproduceable since it happens just very rarely.
  6. Hello, is there any possible way to like fetch/get comments from a profile?
  7. Hi, I'm using SteamUser.gamesPlayed({"game_id": 440}); but when I try start game on steam client, bot get this error: "Error: LoggedInElsewhere" and crashes. How to make bot doesn't crash, And waited until the account is freed and reconnect after that?
  8. Hi folks, I'm trying to work with the Global Offensive API for node.js, and am rather lost. Here's what I'm trying to do: I want to log into a bot Steam account that is online when the node is running, and then monitor the match status of the account's friends. I'm doing this so I could have the bot friend my account and the accounts of all my friends, and then when I call function: matchStatus('friend's steam username'); it returns what match mode they are playing in, and if they're playing a comp match, what the score is and what team they're on. I'm going to call the method through a different node, the discord.js node. Using that api, I've set up a bot that will detect when someone types in the group chat: " matchStatus 'steam username' " and execute a function as a result. Using this, I should be able to interact with the global offensive node as long as I initiate them both in the same .js file? I should be able to work out most of the code on my own, I'm just having trouble getting the global offensive node running in the first place with a bot account. If someone had some example code of this, it would go a long way. I really appreciate any advice and help anyone on here can offer, and for taking the time to respond to this, -L
  9. How to get Float using node-globaloffensive? can u give a little function for get float using this node-globaloffensive
  10. What is DIfferent of receivedOfferChanged and sentOfferChanged? when i used this function manager.on('sentOfferChanged', function(offer, oldState) { if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { ...... } } and when i send item [a,b,c,d] and when bot is accept name of item bot receive is random like this. [b,c,a,d] when i used this function manager.on('receivedOfferChanged ', function(offer, oldState) { if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { ...... } } and when i send item [a,b,c,d] and when bot is accept name of item bot receive is random like this. [[a,b,c,d]
  11. I'm sometimes getting this error when I'm logging into the bot account in my browser. Obviously this causes the problem. But how do I prevent this?
  12. Hi, When I'm calling getInventoryContexts on a CSteamUser object, i get the Malformed response error message. I had no similiar problem before, but happens consantly on this new account i'm testing it with. community.getSteamUser(id, function(err, user){ ... user.getInventoryContexts(function(err, apps){ if (err) return next(err); // Error gets thrown here ... The account is not limited for sure and I'm using steamcommunnity 3.30.6. Any suggestions will be greatly appreciated. Thanks in advance.
  13. example : i want to send item to bot used website. item 1, price: $10 item 2, price: $5 how the Bot know item 1 ->$10, and item 2 -->$5. because if i send item and the Bot accept, assetid will change. thank you.
  14. Do you know what happened with IEconItems? Already second day this interface does not work
  15. when someone send item to my bot, item_id = 12345, when item received by my bot, item_id change. how to bot know this new assetid? sorry for bad english.
  16. hi there , im make steam trade offer but i cant send and receive item this is my code manager.loadInventory(appid, contextid, true, function(err, inventory) { if (err) { console.log("ERR : "+err); process.exit(); } console.log("Found " + inventory.length + " items"); /*var iteminventory = { "assetid": offerid, "appid": appid, "contextid": contextid, "amount" : 1 };*/ // Create and send the offer var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner="+accountid+"&token="+token); offer.addMyItems(iteminventories); offer.addTheirItems(itemtheirinventories); offer.setMessage("SENT !"); offer.send(function(err, status) { if (err) { console.log("ERR : " + err); process.exit(); } if (status == 'pending') { // We need to confirm it console.log('Offer #${'+offer.id+'} sent, but requires confirmation'); community.acceptConfirmationForObject("confirm code", offer.id, function(err) { if (err) { console.log("ERR : "+err); //process.exit(); } else { console.log("Offer confirmed"); } }); } else { console.log('Offer #${'+offer.id+'} sent successfully'); } }); }); i getting error code 26 https://steamerrors.com/26 i know this error for item not exist but item id is exist in inventory . best solution for my code tnx
  17. Hello! I was just wondering about the cookies that node-steam-user uses... it is possible to use this cookies (like copy/paste them) in firefox/chrome? Or are just for your App? Becasuse I would like to login on other browsers, but I don't know if I would get trade-banned for 7 days if I log on other different broswer. Thanks for reading me and have a happy gaming!
  18. console.log('[OFFER] Checking trade hold'); offer.getUserDetails(function(them) { //check for escrow if (them.escrowDays > 0) { offer.decline(); console.log('[OFFER] Declined - Trade hold'); tradelog.info('Trade offer #' + offer.id + ' from ' + offer.partner.getSteamID64() + ' declined: trade hold'); } else { //script to check trade contents } }); I have this part in the manager.on('newOffer', function (offer) { part, so them and offer are defined. The error I'm getting is: Cannot property 'escrowDays' of null.
  19. Good evening. I have a few bots running through one script. I would like to know what data needs for gamesPlayed to specify which bot you need to log into the game.
  20. Hello, I have a problem with my bot. I have currently this script: //loading everything up var SteamUser = require('steam-user'); var SteamTotp = require('steam-totp'); var config = require('./config.js'); var SteamCommunity = require('steamcommunity'); var TradeOfferManager = require('steam-tradeoffer-manager'); var steamID = require('steamid'); var Winston = require('winston') var fs = require('fs') var client = new SteamUser(); var community = new SteamCommunity(); var manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); //logging in var logOnOptions = { accountName: 'username', password: 'password', twoFactorCode: SteamTotp.generateAuthCode('shared_secret') }; client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam'); client.setPersona(SteamUser.Steam.EPersonaState.Online); }); //new items client.on('newItems', function (count) { console.log(count + " new items in inventory"); }); //trading manager.on('newOffer', handleOffer); function handleOffer(tradeoffer) { console.log('New offer #'+ offer.id +' from '+ offer.partner.getSteam3RenderedID()); console.log('Checking: Gift offer/owner offer'); if (offer.partner.getSteamID64() === 76561198259000054 || offer.itemsToGive.length === 0) { logger.info('User '+ offer.partner.getSteam3RenderedID() +' offered gift/owner offer'); offer.accept(function (err) { console.log('Offer accepted'); }); } else { console.log('Offer is not a gift/owner offer'); } console.log('Checking: Trade hold'); offer.getUserDetails(function(err, me, them) { if (them.escrowDays > 0) { offer.decline(); console.log('Offer declined - Trade hold') } else { console.log('No trade hold') } }); }; // }); //}); //declining trade requests client.on('tradeRequest', function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", declining, sending message"); respond(false); client.chatMessage(steamID, 'Sorry, I dont respond to trade requests, use trade offers instead.') }); instead of manager.on('newOffer', handleOffer); function handleOffer(tradeoffer) { i have also tried manager.on('newOffer', function (steamID, respond) { It doesn't show an error on startup, but when i send a trade offer nothing seems too happen.
  21. Hello,I'd like to know how to correctly check item type for trading card. I tried: offer.itemsToReceive.forEach(function(item) { if (item.type.includes("Trading Card"){ My code } But this doesn't seem to work. Could anybody tell me how to do this correctly?
  22. I know one endpoint for getting additional infos on items (http://api.steampowered.com/IEconItems_730/GetPlayerItems/v0001/?key=KEYHERE&SteamID=IDHERE). But this only works if the item is still in that inventory. What if the inspect-link is from the past? Is there any endpoint that I am missing?
  23. Hey, Running into a bit of an issue sometimes with persona_state, it's sometimes null for some reason. Code: Bot.prototype.sendMessage = function(steam_id, send_offline, message) { if (this.client.myFriends[steam_id] === undefined || this.client.myFriends[steam_id] === 2 || this.client.myFriends[steam_id] === 4) { log.error(this.data.name, 'The message recipient is not a friend.'); return false; } this.client.getPersonas([steam_id], (personas) => { if (send_offline == false && personas[steam_id].persona_state == 0) { log.info(this.data.name, 'The recipient is offline, and the request has disabled offline sending.'); return false; } else { // temp. debug log.info(this.data.name, 'Name: ' + personas[steam_id].player_name + ', State: ' + personas[steam_id].persona_state); } log.info(this.data.name, 'Sending the message...'); this.client.chatMessage(steam_id, message); log.success(this.data.name, 'Success!'); return true; }); }; What could cause this? The player it tries to send the message to is a friend, so that's not the issue.
  24. Hello, I'm getting this error every now and then after calling postUserComment() and inviteUserToGroup(). Since this happens in rare occasions I wasn't able to check the value of response.body, but i think this happens when i lose the steamcommunity session? .../node_modules/steamcommunity/components/http.js:101 if (response.statusCode == 403 && response.body && response.body.match(/<div id="parental_notice_instructions">Enter your PIN below to exit Family View.<\/div>/)) { TypeError: response.body.match is not a function at SteamCommunity._checkHttpError (.../node_modules/steamcommunity/components/http.js:101:67) at Request._callback (.../node_modules/steamcommunity/components/http.js:50:61) at Request.self.callback (.../node_modules/request/request.js:186:22) at emitTwo (events.js:106:13) at Request.emit (events.js:192:7) at Request.<anonymous> (.../node_modules/request/request.js:1081:10) at emitOne (events.js:96:13) at Request.emit (events.js:189:7) at IncomingMessage.<anonymous> (.../node_modules/request/request.js:1001:12) at Object.onceWrapper (events.js:291:19) Can I handle this somehow? Because it's crashing my app and i don't know how to handle this other than restarting everything with forever. Thanks
×
×
  • Create New...