Bot commands
Posted: Wed Mar 06, 2002 3:36 pm
Commands for the stats module on LazyBitch (on Lazynet). Some may not be applicable to everybody, but the public commands will be useful at least.
Code: Select all
Public commands:
----------------
!top10 [ordering]
lists the top10 users in the channel
!top20 [ordering]
same as !top10, but lists the top20 (surprise!)
!stat [user]
shows the statistics for the user
!place [user/ordering]
shows on which place the user is
!ttop10/!ttop20/!tstat/!tplace
same as above, but only uses the statistics of today
Only available if log-wordstats is turned on:
!wordstats [user]
lists the most used words of the user
!topwords
lists the most used words in the channel
!top10 word <word>
lists the top10 people who used <word>
Msg commands:
-------------
All public commands are also accessible via /msg.
("/msg <bot> top10 #chan", for example)
Additionally, there are two new commands:
/msg <bot> setemail <email-address>
sets your email address
/msg <bot> sethomepage <homepage-address>
sets the URL of your homepage
DCC commands:
-------------
.+suser <user> [host]
adds a new user to the database
.-suser <user>
removes a user from the database
.+shost <user> <hostmask>
adds a new hostmask to <user>
.-shost <user> <hostmask>
removes a hostmask from <user>
.smatch [mask] [+/-list] [+/-addhosts]
lists all matching users
.schannel #chan
displays the stats-users in a channel
.schattr <user> <flags>
changes the flags for a stats user
.chsusername <oldname> <newname>
changes the name of a user in the stats database
.purgestats
deletes stats for non-existant users, empty stats and deletes expired users.
(m|-)
.sumuser <user1> <user2>
adds all statistics of user2 to user1 and deletes user2
(n|-)
.resetuser <user> <channel>
sets all statistics of user in channel to 0
(m|-)
.writewebstats
writes the old, static webfiles
(m|-)
TCL commands:
-------------
incrstats <user> <chan> <type> <value> [set]
increases the statistics of type <type> in <chan> for <user> by <value>.
If <set> is 1, the stats are not increased but set to the value.
getstats <user> <chan> <type> [today]
returns the stats of <user> in <chan> of type <type>. If <today> is 1,
the statistics of today are returned.
livestats <port>
starts listening for livestats connections on port <port>.
If <port> is "off" or "0", the bot will stop listening.
resetuser <user> <channel>
sets all statistics of user in channel to 0
resetslang
removes every language from the memory, so you can cleanly load a new
set of languages.
loadslang [lang] <langfile>
loads a language
setchanslang <channel> <language>
sets the language in <channel> to <language>
nick2suser <nick> <channel>
returns the username of <nick> in <chan>