1

其他一切都在我的蒸汽机器人中工作,但是steam-tradeoffer-manager
client是我的steam-uservar client = new SteamUser();

var TradeOfferManager = require("steam-tradeoffer-manager");

var manager = new TradeOfferManager({
    steam: client,
    language: "en",
    pollInterval: 10000,
    cancelTime: 300000
})

Cookie 和 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 运行良好,但没有检测到新的报价。

我究竟做错了什么。我认为问题可能出在投票上?

你做了什么让这个工作?

4

1 回答 1

0

像这样向您的经理添加社区:

var manager = new TradeOfferManager({
    steam: client,
    community: community,
    language: "en",
    pollInterval: 10000,
    cancelTime: 300000
})
于 2017-06-03T05:49:21.363 回答