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 9d1fe29 commit d5bd071
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions steambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ var AntiSpamBetweenBots = require('./savedbots.json');
var client = new SteamUser();


// Sync Bots 'n' appIDS
var syncBots = AntiSpamBetweenBots.BOTS.split(',').map(Number);
// appIDS
var AllappIDS = config.Games2Idle.split(',').map(Number);
//* Sync Bots 'n' appIDS
//appIDS


// Boolean
Expand Down Expand Up @@ -63,15 +62,6 @@ var PhoneCodeSharedKey = config.Phone_secret;
var CustomGameFromConfig = config.LogonIdlingNonSteam;
//* ConfigAlias

//_________________________________________________________________________________________
//Extra Array Search
Array.prototype.contains = function (needle) {
for (i in this) {
if (this[i] == needle) return true;
}
return false;
}
//_________________________________________________________________________________________

function check4SharedKey(secret) {
if (secret != "0") {
Expand Down Expand Up @@ -304,7 +294,7 @@ client.on("friendMessage", function (steamID, message) {
"\n" + SPK);
} else {
if (config.AutoAFKMsgActivate == "1" && AutoAFKMsgBool == true) {
if (syncBots.contains(steamID)) {
if (AntiSpamBetweenBots.BOTS.includes(steamID)) {
// se a steamID é outro bot, então não mandar nada; (anti spam 2020)
} else {
client.chatMessage(steamID, config.AutoAFKMsg + "\n" + SPK); // Auto reply
Expand Down

0 comments on commit d5bd071

Please sign in to comment.