Multi Nick Channel Stats.

By WacKy- on Jan 20, 2005

Just a basic multi channel stats script for ur bot,
commands are ' !stats ' (to say ur stats ) or !stats ( will ' says nick ' stats , hf :)

on 1:TEXT:!stats*:#:{
  if ($2) {
    msg $chan :.: $2 $+ 's Stats For $chan Are :.: Lines. %lines. $($+(%,lines.,$address($2,1)),2) . Words. %words. $($+(%,words.,$address($2,1)),2) . Characters. %letters. $($+(%,letters.,$address($2,1)),2) . Kicks. %kicks. $($+(%,kicks.,$address($2,1)),2) . Joined. %joined. $($+(%,joined.,$address($2,1)),2) . Topics. %topics $($+(%,topics.,$address($2,1)),2) . Deoped. %deoped. $($+(%,deoped.,$address($2,1)),2) . Actions. %actions $($+(%,actions.,$address($2,1)),2) $+ .
  }
  else {
    msg $chan :.: Your Stats For $chan Are :.: Lines. %lines. $($+(%,lines.,$address($nick,1)),2) . Words. %words. $($+(%,words.,$address($nick,1)),2) . Characters. %letters. $($+(%,letters.,$address($nick,1)),2) . Kicks. %kicks. $($+(%,kicks.,$address($nick,1)),2) . Joined. %joined. $($+(%,joined.,$address($nick,1)),2) . Topics. %topics $($+(%,topics.,$address($nick,1)),2) . Deoped. %deoped. $($+(%,deoped.,$address($nick,1)),2) . Actions. %actions $($+(%,actions.,$address($nick,1)),2) $+ .
  }
}

on *:kick:#: { 
  inc $+(%,kicks.,$address($nick,1))
} 
on *:topic:#: { 
  inc $+(%,topics.,$address($nick,1)) 
} 
on *:action:*:#: { 
  inc $+(%,actions.,$address($nick,1)) 
} 
on *:join:#: { 
  inc $+(%,joined.,$address($nick,1)) 
} 
on *:deop:*#: { 
  inc $+(%,deoped.,$address($nick,1))
} 
on *:text:*:#:{ 
  inc $+(%,lines.,$address($nick,1)) 
  inc $+(%,words.,$address($nick,1)) $numtok($1-,32) 
  inc $+(%,letters.,$address($nick,1)) $len($1-) 
}

Comments

Sign in to comment.
DaNzO-   -  Apr 25, 2007

Thank you verry much :)
Would be alot better if this had a ranking system on it, are you planning on adding one in the future ?

 Respond  
LikWydd   -  Dec 19, 2005

thanx for this, i used part of this snippet in my mixbot. When a user joins a gather/mix it increases the total they played in so when they type !stats they get, how many mixes they played in

 Respond  
undertaker11   -  Feb 02, 2005

This Snippets OWNZ!!!!!!!

 Respond  
WacKy-   -  Jan 20, 2005

i might just do that :)

 Respond  
xDaeMoN   -  Jan 20, 2005

I won\'t recommend using variables on a multi-channel script especially with all thos events for it will build up a lot in the variables section. It would be better to use INIs or hash tables for this kind of script. :)

 Respond  
xDaeMoN   -  Jan 20, 2005

Oops, now I see it\'s a channel stats for a person. Sorry bout that. =P

 Respond  
xDaeMoN   -  Jan 20, 2005

I thought this is a channel stats? $address($nick,1) should be changed to $chan because everytime a person is kicked, it will save a new variable, most especially on the TEXT, ACTION, JOIN event.

 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.