Skip to content

Commit

Permalink
Update steambot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sp0ok3r authored Apr 17, 2017
1 parent 1970e10 commit 6a451c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions steambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ function check4SharedKey(secret) {
//_________________________________________________________________________________________
// LogON
client.logOn({
"accountName": Username,
"password": Password,
"twoFactorCode": check4SharedKey(config.Phone_secret),
"machineName": Username + " " + SPK
"accountName": Username,
"password": Password,
"twoFactorCode": check4SharedKey(config.Phone_secret),
"machineName": Username + " " + SPK
});

client.on('loggedOn', function (details) {
botID = client.steamID.getSteamID64();
client.setPersona(Number(config.StartOnlineOROffline));
client.getPersonas([botID], function(personas) {
AdminName = personas[botID]["player_name"];
console.log(Green + " Name: "+ Yellow + personas[botID]["player_name"] + Cyan + " LOGGED IN!");
console.log(Green + " Name: "+ Yellow + personas[botID]["player_name"] + Cyan + " LOGGED IN!");
console.log(Green +" Press" +White+ " CTRL" +Green+ " +" +White+ " C" +Green+ " to stop.");
CountGamesCfg();
Check4Functions();
Expand Down Expand Up @@ -452,9 +452,6 @@ client.on("friendMessage", function (steamID, message) { // callback
var GetKey = message.replace('!key ', '');
client.redeemKey(GetKey); // callback -> result,details,packages
client.chatMessage(steamID, "Key activated: "+ GetKey + "\n" + SPK);
} else if (steamID == AdminID && message.indexOf('!reportbug') == 0) {
var CallNiggas = message.replace('!reportbug ', '');
MultipleAdmins(CallNiggas);
}
});

Expand Down

0 comments on commit 6a451c0

Please sign in to comment.