Jump to content
McKay Development

Shiny

Member
  • Posts

    4
  • Joined

  • Last visited

Shiny's Achievements

  1. I deleted useless code function sendSomeItem() { console.log('function started') const partner = '76561198989375284'; const appid = 730; const contextid = 2; const offer = manager.createOffer(partner); offer.addTheirItem({ 'assetid': 18697938160, 'appid': appid, 'contextid': contextid }); offer.setMessage('Test offer'); offer.send((err, status) => { if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); } }); } Now i get function started and error that i must have steam guard for at least 15 days. So i think this is working Thank you so much for that fast answers <3
  2. I edited the code so you can see my partner variable. I thought that i must load somebody's inventory to add their items and the partner is his profile id.
  3. I want to send trade offer where i add only somebody's item. function sendSomeItem() { const partner = '76561198989375284'; const appid = 730; const contextid = 2; const offer = manager.createOffer(partner); manager.loadInventory(appid, contextid, true, (err, myInv) => { if (err) { console.log(err); } else { manager.loadUserInventory(partner, appid, contextid, true, (err, theirInv) => { if (err) { console.log(err); } else { offer.addTheirItem({ 'assetid': 18697938160, 'appid': appid, 'contextid': contextid }); offer.setMessage('Test offer'); offer.send((err, status) => { if (err) { console.log(err); } else { console.log(`Sent offer. Status: ${status}.`); } }); } }); } }); } I use this simple code to test my code. It logging me, and after delay, trying to send a trade offer. client.logOn(logInOptions); client.on('loggedOn', () => { console.log('logged on'); setTimeout(sendSomeItem, 5000); }); But i get this error: logged on Error: Malformed response at SteamCommunity.<anonymous> (C:\Users\jmazu\Desktop\node-steam-bot\node_modules\steamcommunity\components\users.js:353:15) at Request._callback (C:\Users\jmazu\Desktop\node-steam-bot\node_modules\steamcommunity\components\http.js:67:15) at Request.self.callback (C:\Users\jmazu\Desktop\node-steam-bot\node_modules\request\request.js:185:22) at Request.emit (events.js:315:20) at Request.<anonymous> (C:\Users\jmazu\Desktop\node-steam-bot\node_modules\request\request.js:1154:10) at Request.emit (events.js:315:20) at Gunzip.<anonymous> (C:\Users\jmazu\Desktop\node-steam-bot\node_modules\request\request.js:1076:12) at Object.onceWrapper (events.js:421:28) at Gunzip.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1221:12) I don't know what is wrong. Logging works fine.
  4. Hey, i would like to make a simple bot that decline all offers. I already installed node.js and used npm command to install code. But i don't know what to do know. Any helps? I tried following instructions but i can't find anything like step by step setup. I know that my message may be a bit annoying but i will really appreciate any help.
×
×
  • Create New...