RavenX86
Member-
Posts
5 -
Joined
-
Last visited
RavenX86's Achievements
-
Thanks a lot for explaining that.
-
RavenX86 reacted to a post in a topic: Trade offer expire time
-
Any specific format this date object needs to be in? I was to set "cancelTime": 5*60*1000 Also I tried doing it manually by passing a date object set 5 minutes in the future (my timezone is GBT+3). After sending the offer and fetching offer.expires the time is correct but 14 days in the future. Any ideas what might cause this?
-
RavenX86 started following Trade offer expire time
-
Yeah, nevermind , I'm stupid. Now I manually set the cookies and it works. I don't know why I assumed passing community will automatically take the cookies from it. Anyway Thanks a lot. This can be closed.
-
1) SteamTrades is actually var SteamTrades = require("steam-tradeoffer-manager"); so just bad naming. 2) no, I only create the trade manager object after it's already logged via a Steam Community by passing the community object (I assumed this step also takes the cookies ? ) 3) For the events none, for pollData I print with an interval is something like { sent: { '1389220944': 2 } } So Trad is still in state 2
-
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;