Jump to content
McKay Development

Search the Community

Showing results for tags 'solved'.

  • 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

Found 2 results

  1. This same error keeps happening and I don't know how to fix it I've tried reinstalling the module and that doesn't seem to work. I've narrowed down where the error occurs and it seams to be occurring when it exits this: After that code the function ends and it stops managing the trade which is where the error seems to occur. Once processOffer is complete and it exits the manager on it seems to crash and I just need help fixing it please
  2. Got error called "Error: Invalid input SteamID [object Object]" and don't know what to do... My code: manager.getUserInventoryContents(offer.partner.getSteamID64(), 440, 2, true, function (err, myInv){ if (err) { console.log(err); } else { // I need to send X ref var volume = entryCost; // amount = number in args[2] // Filter out all the ref var ref = myInv.filter(function (item) { return item.market_hash_name.match('Mann Co. Supply Crate Key') }); // Let the user know we don't have enough ref if (ref.length < volume) { unmuteChannel(); console.log('Not enough Keys'); message.reply(notEnough); console.log('------------------------'); return true; // Give up } // Start a new trade offer // Add what we should to the current trade console.log('Adding '+volume+' Keys'); offer.addTheirItems(ref.slice(0, volume)) // Send the offer offer.send(function (err, status){ if (err) { console.log(err); } else { console.log('Trade offer #'+ offer.id+ ' sent successfully'); // Register the offer id, save it to JSON file client.tradeLinks ['lastguy'] = { name: message.author.tag, tradelink: _message, lastoffer: offer.id } fs.writeFile ('tradeLinks.json', JSON.stringify(client.tradeLinks, null, 4), err => { if (err) throw err; }) message.reply(readyOffer + offer.id + '>'); // Cancels after 2 minutes offer.data('cancelTime', 120000); // Starts the function myTimer() every 3 seconds to know the status thats on start var myVar = setInterval(myTimer, 3000); function myTimer() { if (ifvartruefalse === "canceled") { clearInterval(myVar); ifvartruefalse = ""; message.channel.send(cancelOffer); unmuteChannel(); console.log('------------------------'); return; } else if (ifvartruefalse === "false"){ clearInterval(myVar); ifvartruefalse = ""; message.reply(deletingCF); unmuteChannel(); console.log('------------------------'); return; } else if (ifvartruefalse === "invalid"){ clearInterval(myVar); ifvartruefalse = ""; message.reply(invalidItems); unmuteChannel(); console.log('------------------------'); return; } else if (ifvartruefalse === "true"){ clearInterval(myVar); ifvartruefalse = ""; message.channel.send(joined); unmuteChannel(); var theTimeout; } return; } } }); } });
×
×
  • Create New...