JavaScript SetInterval
setInterval(function(){
console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
Grepper
setInterval(function(){
console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second
setInterval(function(){
console.log("Hello World!");
}, 2000); //run this script every 2 seconds(specified in milliseconds)
setInterval(function() {
//Your code
}, 1000); //Every 1000ms = 1sec
this.interval = setInterval(() => {
this.currentTime = this.currentTime + 10;
console.log(this.currentTime);
}, 1000);
// Timed Automated Messages for twitch bots///
//Set the message time in ms so for example 600000/ms is 5 minutes
// go here to get the Calculator i use in all my projects
// unitconversion.org/time/minutes-to-milliseconds-conversion.html
client.on('connected', (address, port) => {
setInterval(function(){
console.log(client.action('CHANNEL NAME', 'join the giveaway now and get the chance to win a nice cap streamelements.com/freaksheep/giveaway/61c3ac7615c4541f7edb733'));
}, 900000);
});