其他一切都在我的蒸汽机器人中工作,但是steam-tradeoffer-manager
client
是steam-user
:var client = new SteamUser();
var TradeOfferManager = require("steam-tradeoffer-manager");
var manager = new TradeOfferManager({
steam: client,
language: "en",
pollInterval: 10000,
cancelTime: 300000
})
Cookies和api密钥
client.on("webSession", function(sessionID, cookies) {
manager.apiKey = webAPIKey;
manager.setCookies(cookies, function() {
console.log("Trade offer cookies set. Got API Key: " + manager.apiKey);
})
})
这不起作用
manager.on('newOffer', function (offer) {
console.log("New offer!");
});
Bot工作得很好,但没有发现新的优惠。
我做错了什么。我认为问题可能是民意调查?
你做了什么才能让它发挥作用?
答案 0 :(得分:0)
将社区添加到您的经理中:
var manager = new TradeOfferManager({
steam: client,
community: community,
language: "en",
pollInterval: 10000,
cancelTime: 300000
})