简体   繁体   English

Node.js 注销 Steam 机器人

[英]Node.js Log out of steam bot

Idk if this has been asked before, I tried searching it but didn't find anything.如果之前有人问过这个问题,我尝试搜索但没有找到任何东西。

I am making a steam comment bot so I have multiple accounts that I want to sign into.我正在制作一个 Steam 评论机器人,所以我有多个要登录的帐户。 I am using Node.js to do the magic and this is how I log in (which works fine):我正在使用 Node.js 来做魔术,这就是我登录的方式(工作正常):

client.logOn(CreateNewLogin(index));

client.on("loggedOn", () => {
    console.log("comment");
    //sign out?
}

function CreateNewLogin(index)
{
    var loginOptions = 
    {
        accountName: config.accountName[index],
        password: config.password[index]
    }
    return loginOptions
};

only issue is that if I do another client.logOn now the old one is still active and it returns an error, so how in hell do I logout the old one?唯一的问题是,如果我现在执行另一个 client.logOn,旧的仍然处于活动状态并返回错误,那么我到底如何注销旧的?

I found this which is pretty usefull for most of the stuff I am doing but sadly doesn't contain what I am looking for rn: Link我发现这对于我正在做的大多数事情都非常有用,但遗憾的是不包含我正在寻找的内容 rn: 链接

Nvm 刚刚发现你可以使用client.logOff();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM