Ban timer

By blodix on Mar 03, 2010

This is a simple ban timer script which you simply do as following:

[15:44] <@blodix> !ban Unknown.nick 3
[15:44] BlodBot sets mode: +b Unknown.nick and etc.
[15:44]
This Unknown.nick and etc. ban affects: Unknown.nick
[15:44] * BlodBot sets mode: -b Unknown.nick and etc.

Well.. Very simply.. And remember the timer is in seconds.

on *:TEXT:!ban *:# {
  if ($nick isop $chan) {
    set %ban $3
    timer 1 %ban /mode $chan -b $address($$2,5)
    /mode $chan +b $address($$2,5)
  }
  else {
    msg $chan permission denied.
  }
}

Comments

Sign in to comment.
GuitarMasterx7   -  Mar 04, 2010

er...

[15:44] <@blodix> !ban Unknown.nick 3
[15:44] BlodBot sets mode: +b Unknown.nick and etc.
[15:44]
This Unknown.nick and etc. ban affects: Unknown.nick
[15:44] * BlodBot sets mode: -b Unknown.nick and etc.

das not even 3seconds?
someone lied to us =[
unless u jus edited a single line >.>

 Respond  
Jethro   -  Mar 03, 2010

Or:

on @*:text:$($strip($+($iif($1 = !ban,$1),*))):#: {
  $iif($nick isop # && $2 ison # && $3 isnum,ban $+(-u,$3) # $2 5)
}

I disregard the permission denied warning because it's not that important. He or she can't do squat without being an op anyway.

 Respond  
napa182   -  Mar 03, 2010

um no need for the set var as well no need for the timer

on $@*:TEXT:/^@ban\s(\S+)\s(\d+)$/iS:# {
  if ($nick isop # && $regml(1) ison #) { ban $+(-u,$regml(2)) # $regml(1) 5 }
  else { msg # permission denied. }
}

or

on $@*:TEXT:/^@ban/iS:# {
  if ($nick isop # && $2 ison #) { ban $+(-u,$3) # $2 5 }
  else { msg # permission denied. }
}
 Respond  
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.