Hello I am new to scripting but I need help.

This is my script

Code:
on *:text:!minute:#:{
  if (%flood) { return }
  set -u10 %flood On
  /timer $+ $nick 0 60 msg #jtv /w $nick 1 minute has passed.
   msg $chan $nick 1 minute whispers has been activated.
}

on *:text:!minuteoff:#:{
  if (%flood) { return }
  set -u10 %flood On
 /timer $+ $nick off
 msg $chan $nick 1 minute whispers has been deactivated.
}


But I need it be like this

when the minute timer is on the script should be looking for a specific user and If it says something containing minute it should go to this line

/timer $+ $nick 0 60 msg #jtv /w $nick 1 minute has passed.

so like this

Code:
on *:text:!minute:#:{
  if (%flood) { return }
  set -u10 %flood On
   msg $chan $nick 1 minute whispers has been activated.
}
 (if == bot) said $nick and minute in a sentence countinue
 /timer $+ $nick 0 60 msg #jtv /w $nick 1 minute has passed.
}


Im really bad at explaining but I hope you get the idea. How do I get this to work? Thanks! smile

Last edited by TUSK3N; 21/04/16 10:20 AM.