Clear chat every 15 minutes

This commit is contained in:
Andrew Tomaka 2015-04-16 10:22:43 -04:00
parent f757baecbb
commit d642bb6579

View file

@ -16,6 +16,7 @@ var botRaidTarget = null;
var botLastRandom = 0;
var botLastRaid = 0;
var botLastPurchase = 0;
var botLastChatClear = 0;
var botSleeping = false;
var botUser = null;
@ -142,6 +143,12 @@ function mainLoop() {
clickSelector('button[name="buymax-capturedminion"]');
}
}
//CLEAR CHAT
if(botTimestamp() > botLastChatClear + (15 * 60)) {
clickSelector('#chat_clear');
botLastChatClear = botTimestamp();
}
}
botDetectUser();