Jump to content
McKay Development

Sometimes bot can't login, with no reason


MrPotato

Recommended Posts

log('authCode');
let client = new Steam.CMClient();
let user = new SteamUser(client, {enablePicsCache: true, promptSteamGuardCode: false});
log("http://" + proxy);
client.setHttpProxy("http://" + proxy);


user.logOn({"accountName": username,"password": password, "authCode": code});
user.on('error', function(e) {
console.log(e);
closeConnection(user);
});


user.on('steamGuard', function(domain, scallback) {
console.log('authCode: badCode');
closeConnection(user);
});
user.once('loggedOn', function(details) {
log("authCode: loggedOn");
});

log:

0|start  | [19:42:11] "New account sa5fqyllljfsd153af:sa5fqyllljfsd153a ref: 1 steamid: 76561198858394123"
0|start  | [19:42:11] "authCode"
0|start  | [19:42:11] "http://*@*:*"
// that's all! why not login?
 
UPD: proxy is't valid, please add error that proxy isn't valid
Edited by FunnyCheeze
Link to comment
Share on other sites

so, i need solution.

log:

[05:44:57] "Selected valid proxy: *:*@*:*"
[05:44:57] "authCode: 12345"
[05:44:57] "http://*:*@*:*"

and then not happens nothing!

code:

function logIn(code, username, password, steamid, proxy) {
	log('authCode: ' + code);
	let client = new Steam.CMClient();
	let user = new SteamUser(client, {enablePicsCache: true, promptSteamGuardCode: false});
	log("http://" + proxy);
	client.setHttpProxy("http://" + proxy);

	user.logOn({"accountName": username,"password": password, "authCode": code});

	user.on('error', function(e) {
		log(e);
	});

	user.on('steamGuard', function(domain, scallback) {
		console.log('authCode: badCode');
	});

	user.once('loggedOn', function(details) {
		log("loggedOn");
	});
}
Edited by FunnyCheeze
Link to comment
Share on other sites

  • 3 weeks later...

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...