kick ban kick-ban and etc. counter

By Sephiroth1n6 on Sep 22, 2007

this will count bans kick kick-bans quits joins and other things
just type !voc to view the numbers
where it says your name you change it to what your nick is, if you want to you can make it available to everyone, but beware of spammers

on *:TEXT:!VOC*:#:{ 
  if ($nick isop $chan) || ($nick == yournamehere) {
    msg $chan 4I have counted a total of7 $bytes(%kickzz,bd) 4kicks,7 $bytes(%tehnickz,bd) 4nick changes,7 $bytes(%quitz,bd) 4people quit,7 $bytes(%banz,bd) 4bans,7 $bytes(%partz,bd) 4parts and7 $bytes(%joinz,bd) 4joins, as of 08/07/07 in 5 channels
  }
  else {
    .notice $nick stop trying to spam the channel.
  }
}

on *:KICK:#: {
  inc %kickzz 
} 

on *:JOIN:#: {
  inc %joinz
}

on *:PART:#: {
  inc %partz
}

on *:BAN:#: {
  inc %banz
}

on *:QUIT: {
 inc %quitz
}

on *:NICK: {
  inc %tehnickz
}

Comments

Sign in to comment.
Jethro   -  Apr 25, 2011

I'd better to consolidate all the events with the $event identifier:

on *:JOIN:#:count
on *:PART:#:count
on *:BAN:#:count
on *:QUIT:count
on *:NICK:count
alias -l count {
  inc $+(%,$event)
}

All the variable counts will appear as:

%join 5
%kick 2
etc...

 Respond  
Ahmed Zaggoudi   -  Apr 25, 2011

Like it +1

 Respond  
Ahmed Zaggoudi   -  Apr 25, 2011

like it +1

 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.