manager.on('receivedOfferChanged', (offer) => { community.postUserComment(offer.partner.toString(), math.pickRandom([Comments.comments0, Comments.comments1, Comments.comments2, Comments.comments3, Comments.comments4, Comments.comments5]))}); Is the code the only thing i cannot figure out is how to make it comment only when it accepts an trade offer I tried putting it like this if (ourValue <= theirValue) { acceptOffer(offer); manager.on('receivedOfferChanged', (offer) => { community.postUserComment(offer.partner.toString(), math.pickRandom([Comments.comments0, Comments.comments1, Comments.comments2, Comments.comments3, Comments.comments4, Comments.comments5]))}); } else { declineOffer(offer); }; but it didnt even comment like that And also tried function acceptOffer(offer) { offer.accept((err) => { manager.on('receivedOfferChanged', (offer) => { community.postUserComment(offer.partner.toString(), math.pickRandom([Comments.comments0, Comments.comments1, Comments.comments2, Comments.comments3, Comments.comments4, Comments.comments5]))}); community.checkConfirmations(); console.log("We Accepted an offer"); if (err) console.log("There was an error accepting the offer."); }); }; and nothing am i doing something wrong?