Jump to content
McKay Development

Error: Cannot kick other session


TheM

Recommended Posts

Error: Cannot kick other session

 

What may cause this?

This is my code:
app.js

client.on('error', (error) => {
    log(`Error occured! Details: ${error}`);
    setTimeout(() => {
        client.logOff();
        client.logOn(loginDetails); setOptions(client);
        log(`Account is playing in elsewhere, performing kick and relogging!`);
            client.kickPlayingSession((error) => {
                if(error) {
                    log(`Error while trying to relog! Killing application...`);
                    process.exit(1);
                    return;
                }
            });
        client.relog();
    }, 30000);
});

setOptions module (if somewhat needed):
 

module.exports = function setOptions(client){
    client.setOption("enablePicsCache", true);
    client.setOption("autoRelogin", true);
    client.setOption("picsCacheAll", true);
    client.setOption("changelistUpdateInterval", 60000);
    client.setOption("language", "english");
    client.setOption("clientOS", 16);
    client.setOption("machineName", "Boosting by The M.");
}

I tried many different ways. I just need my bot to kick other playing session, and make his own :/

Edited by TheM
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...