Jump to content
McKay Development

BillTheBober

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. I don't know why it doesn't accept my trade offer I'm stupid client.on('webSession', (sessionID, cookies) => { community.setCookies(cookies); community.startConfirmationChecker(10000, config.identitySercet); }); function acceptOffer(offer) { community.ConfirmationChecker(); console.log("we accepted a offer :)") offer.accept((err) => { if (err) console.log("There was an error accepting the offer."); }); } function declineOffer(offer) { console.log("we decline a offer :(") offer.decline((err) => { if (err) console.log("There was an error declining the offer."); }); } manger.on('newOffer',(offer) =>{ if(offer.partner.getSteam64ID() == config.OwnerId) { acceptOffer(offer); } else { declineOffer(offer); } })
×
×
  • Create New...