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
Take a look at the examples in the steam-tradeoffer-manager repository. It should be fairly trivial to modify the example to accept all incoming offers into one that declines all incoming offers.