Jump to content
McKay Development

xLeeJYx

Member
  • Posts

    100
  • Joined

  • Last visited

Everything posted by xLeeJYx

  1. var offer = manager.createOffer(steamID) offer.addMyItem(6081859871, 440, 2, 1) offer.setMessage("Free Scrap !") offer.send(function(err, status) { if (err) throw err console.log(status) }) This is my code, and below is the error i got, i dont get how its not working :V C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:255 throw new Error("Missing appid, contextid, or assetid parameter"); ^ Error: Missing appid, contextid, or assetid parameter at addItem (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:255:9) at TradeOffer.addMyItem (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:167:9) at SteamUser.<anonymous> (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\start.js:32:8) at emitTwo (events.js:106:13) at SteamUser.emit (events.js:191:7) at SteamUser._emitIdEvent (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-user\components\utility.js:29:12) at SteamUser._handlers.(anonymous function) (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-user\components\chat.js:281:9) at SteamUser._handleMessage (C:\Users\JingYong-PC\Desktop\Custom bots or in development\steam\node_modules\steam-user\components\messages.js:216:29) at emitThree (events.js:116:13) at CMClient.emit (events.js:194:7) Press any key to continue . . .
  2. manager.on('receivedOfferChanged', (offer)=>{ if(offer.state === 3){ community.postUserComment(offer.partner.toString(), "Comment", (err)=>{ if(err) throw err.message console.log("Commented on " + offer.partner.toString() + "'s profile")}) } }) You dont put this thing in the offer.accept and you didnt even include callback
  3. https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#getinventorycontentsappid-contextid-tradableonly-language-callback didn't say we have to put steam id :V and i cant get it working until i saw this code
  4. So i should login again with client.logOn but not client.relogin
  5. Code : community.on("sessionExpired", function(err) { if(client.steamID == null){ client.relog((err) => { if (err) { console.log(error + err.message) } }); } else { client.webLogOn((err) => { if (err) { console.log(error + err.message) } }) } }); Error : C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steam-user\components\logon.js:254 if (this.steamID.type == SteamID.Type.INDIVIDUAL && (!this._logOnDetails || !this._logOnDetails.should_remember_password || !this._logOnDetails.login_key)) { ^ TypeError: Cannot read property 'type' of null at SteamUser.relog (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steam-user\components\logon.js:254:18) at SteamCommunity.<anonymous> (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\start.js:130:10) at emitOne (events.js:96:13) at SteamCommunity.emit (events.js:188:7) at SteamCommunity._notifySessionExpired (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:85:7) at C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\confirmations.js:21:10 at C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\confirmations.js:272:4 at SteamCommunity._checkHttpError (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:90:3) at Request._callback (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\steamcommunity\components\http.js:50:61) at self.callback (C:\Users\JingYong-PC\Desktop\CSGO-TF2bot\node_modules\request\request.js:188:22)
  6. Sometimes i will restart my wifi and when i restart it will return this error. Anyidea how to fix ? TypeError: Cannot read property 'type' of null
  7. So i used the bot i created on a limited steam account and guess what ? nothing happened when a newoffer was received. manager.on('newOffer', (offer) => { console.log('We received 1 new trade offer, will start checking the traded items') })
  8. Will you add this feature anytime soon ? Or do you mean by steam dont allow this
  9. why not just make a config file ?
  10. can y can you help me with this thing ? i dont understand async. I want it to check the price of the trading card if the partner is offer one. and if its below a certain value, it will decline the trade or else do pricechecking in ref
  11. lul i think he is trying to say "i want to run a bot on a server, how do i know if the bot logged out and let it restart"
  12. https://github.com/DoctorMcKay/node-steam-user#newcomments this ?
  13. So using this method, it seems to return prices that aren't the latest. Can i know how to get the latest price ? offer.itemsToGive.forEach((item) => { if (isCard(item) === true) { community.getMarketItem(item.appid, item.market_hash_name, function(err, item) { if (err) { console.log(err) } else { console.log(item) } }) } })
  14. i really cant understand a single thing about async ._. i looked through the google and youtube but still cant understand
  15. With this code below i got [ ] in console. Not sure what i done wrong function priceCheckCard(item) { var cardPrices = []; market.getItemPrice(item.appid, item.market_hash_name, (err, data) => { if (err) { console.log(err.message) } else { cardPrices.push(data.median_price) } }) return cardPrices }
  16. nope, if i use && all of them have to be false to return false. I used || because i want it to return false if any of them are false
  17. im not doing that way :/ function isCraftWeapon(item) { function marketable(item) { if (item.marketable === true) { return false } } function Tags(item) { if (item.tags[1].name !== "Primary weapon" || item.tags[2].name !== "Secondary weapon" || item.tags[3].name !== "Melee weapon" || item.tags[4].name !== "Primary PDA" || item.tags[5].name !== "Secondary PDA") { return false } } function craftable(item) { var descriptionLength = item.descriptions.length; for (i = 0; i < descriptionLength; i++) { if (item.descriptions[i].value === "( Not Usable in Crafting )") { return false } } return true } var mkable = marketable(item) var ts = Tags(item) var cable = craftable(item) if (mkable === false || ts === false || cable === false) { return false } return true }Anything wrong with this code ? it seems to return everything as false
  18. With the code below, how do i make it return false if Not Usable In Crafting is found ? i couldnt make it to return true and false for this. Please help :c function craftable(item) { var descriptionLength = item.descriptions.length; for (i = 0; i < descriptionLength; i++) { if (item.descriptions[i].value === "( Not Usable in Crafting )") { return false } } return true }
  19. community.inviteUserToGroup(offer.partner.toString(), config.groupid, (err) => { if (err) { console.log(err.message) } else { console.log("I've invited " + offer.partner.toString() + " to our group") } })=_= this is my code, edit it a little if you dont understand
  20. its still working for me, so yea, maybe `user` is not in 64?
  21. title says everything. so far i found these 2 only. not sure which is more updated https://github.com/Aareksio/node-steam-market-pricing https://github.com/pepzwee/node-steam-market-manager
×
×
  • Create New...