This alias will run itself at intervals ranging from 5 to 10 seconds each time you run it. It will stop that if you do "/dostuff off"

Code
alias dostuff {
  if ($1 == off) { timerdostuff off | return }
  timerDoStuff 1 $rand(5,10) dostuff
  here is where to put the things to do each time the timer triggers
 }