########################################################################## ### CHANNELTALK STATISTICS (StatWWW) 1.4 for Eggdrop 1.0 ### ### © Goblet 1997 email: goblet@sci.fi ### ### ### ### This script counts everybody's words, publics, letters, actions, ### ### mode and topic changes and kicks on a channel and makes a WWW-page ### ### about all that data. ### ### Anyone can also ask his/her stats any time. Also "seen"-feature is ### ### incuded In this same script. ### ### ### ### A working page is at: ### ### http://www.sci.fi/~goblet/blerp/blerpstat.html ### ### ### ### READ ALL THE DOCUMENTATION FIRST! Use with your own risk :) ### ### GET THE NEWEST VERSION via http://www.sci.fi/~goblet/scripts.html ### ### ### ########################################################################## ### NOTES: This script uses xtra-field in userfile and flags 1 & 2, ### ### so it WILL interfere with other scripts using those! ### ### Also this script cannot be used with multichannel bots! ### ### This is probably the last version I'll write for Eggdrop1.0 ### ### I'll write multichannel portion for Eggie 1.1 very soon ### ### It's good idea to restart, not only rehash the bot when ### ### installing/upgrading this script ### ########################################################################## ## Please send me email and tell the url where your stats are running! ## ########################################################################## HISTORY V1.4 (2 Aug 1997) -If somebody parts/quits and has less than 3 comments, the bot deletes that user because it's very big possibility that he just came to say "hello" and won't ever be back. That prevents userfile getting huge. -Added DOSTATS dcc-command, see below V1.3 -Fixed bug with words/pubs, no more division by zero. -Fixed bug with auto_adduser -People can now ask somebody else's stats, see below -Added TOPTEN command, see below V1.2 -STAT-command tells also idletime if user is on channel. -Fixed some little bugs in several places -Added words/publics section V1.1 -Fixed bug with actions, they go to the logs now. -Fixed some little bugs in several places -Fixed bug with count_words, no more errormsg with nonexistent users ########################################################################## ## ================== DCC COMMANDS TO HANDLE THE STATS ================ ## ########################################################################## (only masters can use these) CLRUSER Sets somebody's all stats to 0 SUMUSER Adds handle2's hostmask(s) and stats to handle1 and deletes handle2 DOSTATS Instantly creates the new html-files. ########################################################################## ## =========================== MSG & PUB COMMANDS ===================== ## ########################################################################## (everybody can use these) These work also via public by using "!" prefix, f.ex. !when foo STAT [nick] Sends a message to the user and tells his/her statistics If nick is said after word STAT, will say nick's stats. WHEN Sends a notice to the user and tells when was last on channel TOPTEN Says top ten talkers and their wordcounts. ================ SPECIAL FLAGS USED BY THIS SCRIPT: =================== 1 = Do not include this user to the list output. (counting still works) 2 = Lock this handle, if someone uses same nick, he'll get handle _nick M (master) flag does the same also for security. IMPORTANT: If you use auto-op on your bot, be sure to LOCK ALL OPERS! Otherwise people using same nick will get ops!! You can use .sumuser command later in need. More documentation in the script's settings-section.