ALizardlyFigure   -  Jul 02, 2016

I have been making a twitch.tv bot recently but I've stumbled upon an issue which I cant seem to find a solution to, the bot itself posting too many messages. Could anyone help me make it so the bot would have a cooldown of about 10 seconds or so after being commanded 3 times?

blackvenomm666  -  Aug 11, 2016

just for example this is a simple way to do what you want using the enable command this will not work for your bot since i'm not doing it to the actual coding. also this is for Mirc style bots

#bot off
on *:text:*::*: { if (%cooldown >= 3) {
    .disable #bot
    .timerenablebot 1 10 .enable #bot
.unset %cooldown
  }

  else { 
    .set %botcooldown $calc(%botcooldown +1)

  }
}
#bot end
Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.