var cont = 0;
var myInterval = setInterval(ex, 360000);
console.log(‘Sistema fará votação a cada 6 minutos’);
ex();
function ex() {
document.querySelectorAll(‘button.modal-close’).forEach((button)=>{button.click()});
document.querySelector(‘button.btn-voting’).setAttribute(‘data-band’,’987′);
document.querySelector(‘button.btn-voting’).removeAttribute(‘disabled’);
localStorage.clear();
document.querySelector(‘button.modal-close’).click();
document.querySelector(‘button.btn-voting’).click();
console.log(‘Vostos realizados’, ++cont);
}