glacier_rat

Untitled

Apr 29th, 2010
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. on *:INPUT:*:{
  2. inc %words $0
  3. inc %spaces $count($1-,$chr(32))
  4. inc %vowels $count($1-,A,E,I,O,U)
  5. inc %consonants $count($1-,B,C,D,F,G,H,J,K,L,M,N,P,Q,R,S,T,V,W,X,Y,Z)
  6. inc %lines
  7. inc %chrs $len($remove($1-,$chr(32)))
  8. }
  9.  
  10. alias wcount {
  11. if ($2 == reset) {
  12. unset %words %lines %chrs
  13. echo -a Your stats have been reset!
  14. }
  15. else {
  16. $iif($isid,return,say) I have typed a total of $bytes(%words,db) words, which was $bytes(%chrs,db) characters and $bytes(%spaces,db) spaces, in a total of $bytes(%lines,db) lines, $bytes(%vowels,db) were vowels and $bytes(%consonants,db) were consonants!
  17. }
  18. }
Add Comment
Please, Sign In to add comment