08 May 2012

ntahhhHHHH

on *:join:#:{
  if (%voice. [ $+ [ $chan ] ] != $null) {
    if (%voicetime. [ $+ [ $chan ] ] != $null) {
      .timer 1 %voicetime. [ $+ [ $chan ] ] mode $chan +v $nick
    }
    else msg $chan the voice time is not set. --> !setvoicetime time to voice
  }
}

on *:text:!av on:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%voice. [ $+ [ $chan ] ] == $null) {
      set %voice. [ $+ [ $chan ] ] sup
      set %checker. [ $+ [ $chan ] ] on
      msg $chan 10AutoVoice for 4 $chan 10is now: 4on 10.
    }
    else notice $nick it is already on.
  }
  else notice $nick you need to be op or hop to use this.
}


on *:text:!av off:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%voice. [ $+ [ $chan ] ] != $null) {
      unset %voice. [ $+ [ $chan ] ]
      set %checker. [ $+ [ $chan ] ] off
      msg $chan 10AutoVoice for 4 $chan 10is now: 4off 10.
    }
    else notice $nick it is already off.
  }
  else notice $nick you need to be op or hop to use this.
}

on *:text:!setvoicetime*:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if ($2 isnum) {
      set %voicetime. [ $+ [ $chan ] ] $2
      msg $chan the voice time is now set to: $2 seconds.
    }
    else notice $nick please put in a number.
  }
  else notice $nick you need hop or op to do this.
}

on *:text:!voicecheck:#:{
  if ($nick isop $chan) || ($nick ishop $chan) {
    if (%checker. [ $+ [ $chan ] ] != $null) {
      notice $nick 10The voice settings for this channel are as follows...
      notice $nick 10AutoVoice is: 4 %checker. [ $+ [ $chan ] ]
      notice $nick 10The time it will take to voice a user is: 4 %voicetime. [ $+ [ $chan ] ] 10seconds.
    }
    else notice $nick you need hop or op to do this.
  }
  else notice $nick Your channel does NOT have any voice settings made.
}

on *:text:!avhelp:#:{
  if (%whgg. [ $+ [ $nick ] ] == $null) {
    set -ku30 %whgg. [ $+ [ $nick ] ] sup
    msg $nick auto voicing commands.
    msg $nick !av on/off
    msg $nick !setvoicetime time
    msg $nick !voicecheck
  }
  else notice $nick i can only tell you this once every 30 seconds.
}

No comments: