Simple Stats

By PoiXon on Apr 12, 2005

i saw all the other stats things and they use a Variable for each person ( well the one ive seen ) ( and its in the forums alot :S )

Type !show there are.. kicked,kicks,topics,bans,actions,banned,lines,words,letters Have fun :P

NOTE: it will work in Every Channel and include texts from other channels unless u change all the #'s to #YOURCHANNEL <- except replace that for your channel :P

on *:start: { hmake counts 300 }
on *:kick:#: {
  hinc counts $+($knick,kicked)$+ 1
  hinc counts $+($nick,kicks)$+ 1
}
on *:topic:#: {
  hinc counts $+($nick,topic)$+ 1
}
on *:action:*:#: {
  hinc counts $+($nick,action)$+ 1
}
on *:ban:#: {
  hinc counts $+($bnick,banned)$+ 1
  hinc counts $+($nick,bans)$+ 1
}
on *:text:*:#: {
  hinc counts $+($nick,length)$+ $len($1-)
  hinc counts $+($nick,word)$+ $numtok($1-,32)
  hinc counts $+($nick,lines)$+ 1
  if ($1 == !show) {
    if ($2 == lines) {
      msg $chan $nick You Have Said: $hget(counts,$+($nick,lines)$+) Line(s)
    }
    if ($2 == words) {
      msg $chan $nick You Have Said: $hget(counts,$+($nick,word)$+) Word(s)
    }
    if ($2 == letters) {
      msg $chan $nick You Have Said: $hget(counts,$+($nick,length)$+) Letter(s)
    }
    if ($2 == banned) {  
      msg $chan $nick You Have Been Banned: $iif($hget(counts,$+($nick,banned)$+) == $null,0,$hget(counts,$+($nick,banned)$+)) Time(s)
    }
    if ($2 == bans) {  
      msg $chan $nick You Have Banned: $iif($hget(counts,$+($nick,bans)$+) == $null,0,$hget(counts,$+($nick,bans)$+)) Time(s)
    }
    if ($2 == topics) {  
      msg $chan $nick You Have Changed the Topic: $iif($hget(counts,$+($nick,topic)$+) == $null,0,$hget(counts,$+($nick,topic)$+)) Time(s)
    }
    if ($2 == kicked) {  
      msg $chan $nick You Have Been kicked: $iif($hget(counts,$+($nick,kicked)$+) == $null,0,$hget(counts,$+($nick,kicked)$+)) Time(s)
    }
    if ($2 == kicks) {  
      msg $chan $nick You Have kicked: $iif($hget(counts,$+($nick,kicks)$+) == $null,0,$hget(counts,$+($nick,kicks)$+)) person/people
    }  
    if ($2 == actions) {  
      msg $chan $nick You Have Used: $iif($hget(counts,$+($nick,action)$+) == $null,0,$hget(counts,$+($nick,kick)$+)) Time(s)
    }
  }
}

Comments

Sign in to comment.
x1L22   -  Jun 29, 2010

Deletion we do it ourselves ?

 Respond  
x1L22   -  Jun 29, 2010

Delete ?

 Respond  
ryu.dragonryder   -  Dec 09, 2005

very nice for a mini stats

 Respond  
DarthReven   -  Apr 12, 2005

I\'m not a big stats person but nice execution

 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.