sentanos / roblox-js

!!!THIS PROJECT IS NO LONGER MAINTAINED!!! Execute ROBLOX website actions in node.js
MIT License
45 stars 46 forks source link

Won't Login(Resolved) #90

Closed sylv256 closed 6 years ago

sylv256 commented 6 years ago

Whenever I use the login function along with a setInterval for 500 milliseconds, the terminal will wait for about 1-2 seconds without printing anything then it will stop the script. Does anyone have any idea why this is happening?

Code:

var roblox = require("roblox-js");

var Bot = {
    username: "I put my bot username here",
    password: "I put my bot password here"
};

// Login function(for setInterval)
var login = function() {
        // Log into the account
    roblox.login(Bot.username, Bot.password).then(function() {
                // Notify me it's logged in.
        console.log('Logged in')
    });
};

setInterval(login, 500);
suufi commented 6 years ago

Why are you logging in every half a second?

On 18 February 2018 at 20:16, SonicCoding1180 notifications@github.com wrote:

Whenever I use the login function along with a setInterval for 500 milliseconds, the terminal will wait for about 1-2 seconds without printing anything then it will stop the script. Does anyone have any idea why this is happening?

Code:

var roblox = require("roblox-js"); var Bot = { username: "I put my bot username here", password: "I put my bot password here" }; // Login function(for setInterval)var login = function() { // Log into the account roblox.login(Bot.username, Bot.password).then(function() { // Notify me it's logged in. console.log('Logged in') }); }; setInterval(login, 500);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sentanos/roblox-js/issues/90, or mute the thread https://github.com/notifications/unsubscribe-auth/AMKxJDu7tFjrw9FyBVYOFGkJXvmw_eZmks5tWMuGgaJpZM4SJ8Qw .

Neztore commented 6 years ago

^ as well as ROBLOX doesn't like repeated log-ins. They'll captcha you.

You don't need to login twice in single session.