S
S
Semyon Kataparov2016-12-28 14:31:11
Node.js
Semyon Kataparov, 2016-12-28 14:31:11

Must start with number, buffer, array or string, what's the problem?

When I run my bot, I get an error: I
ed97f6e8ef86bcd2f6661c4f3fb11100.png5e488bcadd283d5fe893d1941e40fa67.png
'm using TypeScript, but when I try to run it in JS, I get the same error.
The code:

function reWebLogOn() {
    steamWebLogOn.webLogOn((sessionID, newCookie) => {
        getSteamAPIKey({
            sessionID: sessionID,
            webCookie: newCookie
        }, (err, APIKey) => {
            offers.setup({
                sessionID: sessionID,
                webCookie: newCookie,
                APIKey: APIKey
            });
        });
    });
}

client.on('loggedOn', function() {
    console.log("[BOT] Logged in trough Steam.");
    reWebLogOn();
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question