Flood Protection For A bot

By napa182 on Aug 22, 2007

Ok what this does is warn kick ban a channel flooder. Put in a new remote of the bot add Ur self as bot owner by typing /owner nickehere

alias owner { auser owner $address($1,2) }
on owner:text:!flood*:#:{
  if (!$3) { msg $chan commands are !flood on #channel / !flood off #channel / !listrooms }
  elseif ($2 == on) && ($istok(%protecchan,$3,44)) {
    msg $chan My Flood Protection Is Already On For $3 
  }
  elseif ($2 == on) {
    set %protecchan $addtok(%protecchan,$3,44)
    msg $chan My Flood Protection Is Now ON In $3 
  }
  elseif ($2 == off) && (!$istok(%protecchan,$3,44)) {
    msg $chan My Flood Protection Is Already OFF For $3 
  }
  elseif ($2 == off) {
    set %protecchan $remtok(%protecchan,$3,1,44)
    msg $chan My Flood Protection Is Now OFF In Room $3  
  }
}
on owner:text:!listrooms:#:{ 
  if (!%protecchan) { msg $chan My Flood Protection Is NOT ON In Any Room's }
  else { msg $chan My Flood Protection Is On In Room's %protecchan }
}
on *:load: { 
  echo 12 -a You Have Just Loaded Napa182's Flood Control. 
  echo 12 -a A Script0rs Inc. Production 
  echo -a 14,1(14,1¯15,1¯0,1¯0,1º $+($chr(171),$chr(164),$chr(88),$chr(167),$chr(199),$chr(174),$chr(238),$chr(254),$chr(116),$chr(48),$chr(174),$chr(167),$chr(88),$chr(164),$chr(187)) º0,1¯15,1¯14,1¯) $+ $chr(153)
}
on !*:text:*:%protecchan: {
  if ($nick(#,$nick,oh)) { halt }
  else {
    inc -u2 $+(%,flood,.,$chan,.,$nick)
    if ($($+(%,flood,.,$chan,.,$nick),2) >= 5) {
      inc $+(%,floodd,.,$chan,.,$nick) 
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 2) { msg $chan $nick Dont Flood This Room }
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 5) { kick $chan $nick flood Control 1 more time and it's a BAN!! }
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 8) { ban -ku600 # $nick 2 you were warned not to Flood In This Room. | unset $+(%,floodd,.,$chan,.,$nick) }
    }
  }
}
on !*:action:*:%protecchan: {
  if ($nick(#,$nick,oh)) { halt }
  else {
    inc -u2 $+(%,flood,.,$chan,.,$nick)
    if ($($+(%,flood,.,$chan,.,$nick),2) >= 5) {
      inc $+(%,floodd,.,$chan,.,$nick) 
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 2) { msg $chan $nick Dont Flood This Room }
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 5) { kick $chan $nick flood Control 1 more time and it's a BAN!! }
      if ($($+(%,floodd,.,$chan,.,$nick),2) == 8) { ban -ku600 # $nick 2 you were warned not to Flood In This Room. | unset $+(%,floodd,.,$chan,.,$nick) }
    }
  }
}

Comments

Sign in to comment.
Sachit Reddy   -  Jun 27, 2011

how to set the owner can u guys give me directly so i can copy paste it

 Respond  
PuNkTuReD   -  Dec 29, 2008

multi channel would be noiiice

 Respond  
AlexHopper   -  Dec 28, 2008

nice

 Respond  
Fuzion   -  Aug 05, 2008

yeah i did :(

 Respond  
napa182   -  Aug 04, 2008

well did you set the owner of the bot so you can use the script?
on the bot\'s side where you have the script loaded type /owner nick_you_want_to_use_script

 Respond  
Fuzion   -  Aug 04, 2008

whole script doesnt work for me

 Respond  
napa182   -  Aug 04, 2008

can you be more clear then it doesnt work cuz it seem\'s to be working just fine for me

 Respond  
Fuzion   -  Aug 04, 2008

doesnt work

 Respond  
SnoooP   -  May 23, 2008

o0o0o0o Nappaaa. :P aplauds

 Respond  
AdrianF   -  May 23, 2008

nvm
pretty good

 Respond  
AdrianF   -  May 23, 2008

wats point of owner?

 Respond  
napa182   -  Aug 22, 2007

Thanks

 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.