When I send an offer from the bot to the user and the user accepts and confirms with the mobile the bot's account receives the item but no event is launched on bot. Polling Data manually every 2 seconds shows that the offer is shown in pollData in state 2 still. Also no other events seem to work for me (EG: .on("debug",console.log) ). Can I have made a mistake that crashed the events? My code looks something like this
console.dir("logged");
var manager = new SteamTrades({
"community": bot.community, // Polling every 30 seconds is fine since we get notifications from Steam
//"domain": "example.com",
"pollInterval": 5000,
"language": "en" // We want English item descriptions
});
manager.on('sentOfferChanged',function(offer, oldState) {
console.dir("sentOfferChanged");
console.dir(offer);
});
manager.on('pollFailure',function(err){
console.log("failed to poll");
console.log(err);
});
manager.on('pollData',function(pollData){
console.log("pollData ",pollData);
});
manager.on('debug', console.log);
live_bots[bot.index].manager = manager;