Clear chat every 15 minutes
This commit is contained in:
parent
f757baecbb
commit
d642bb6579
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue