Bot commands

General discussion on MAME, MARP, or whatever else that doesn't belong in any of the other forums

Moderators: mahlemiut, seymour, QRS

Post Reply
User avatar
seymour
Site Admin
Posts: 238
Joined: Mon Feb 04, 2002 2:59 pm
Location: Newfoundland, Canada

Bot commands

Post by seymour »

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>
Last edited by seymour on Wed Mar 06, 2002 4:44 pm, edited 1 time in total.
Chris Gushue
MARP IRC/Forum Maintainer
http://gushue.net
User avatar
seymour
Site Admin
Posts: 238
Joined: Mon Feb 04, 2002 2:59 pm
Location: Newfoundland, Canada

Post by seymour »

Commands for the seen module (this is slightly different from what phuquenut was running, but it works pretty much the same way):

Code: Select all

Public commands:
----------------

%seen <nick>
  I think this command doesn't need an explanation. ^_^
%seen <mask>
  Searches the database for entries that match <mask>
  for example "!seen *!user@dialin-*.isp.com"
%seennick <nick>
  !seen also checks if a user was online later with a
  different nick. !seennick only seens for <nick>
%seenstats
  just a little report on how many nicks are tracked

All commands are also accessible via /msg.
("/msg <bot> seen <nick>", for example)

AI seen:
--------

This module has a simple built in AI routine.
A short example:

<G`Quann> Argo: have you seen Fabian recently?
<|Argo|> G`Quann, fabian (~fabian@dns.gifs.de) was last seen quitting
from #eggdev 1 week 4 days 9 hours 40 minutes 56 seconds ago
(20.02. 01:39) stating ".....zzzzZZZzzZZZzZZZZZZZZZZzzz..".

Well, it's not a very intelligent AI, it's rather brute-force. So don't
forget to use the ai-seen-ignore setting.
I know that's not coded very elegant, but if you configure it correctly,
the failure-rate is way lower than with other AI scripts...

DCC commands:
-------------

.seen
.seennick
.seenstats
  just the same as the public versions
.purgeseens
  deletes expired data (this also happens automatically once a day)
  (m)

Channel Settings:
-----------------

  +noseendata
        don't log any seen data in this channel
  +quietseens
        send answers directly via notice to the person who asked and
        don't bother the rest of the channel with the reply
  +quietaiseens
        same as +quietseens, but for AI seens
  +nopubseens
        ignore every seen-command in this channel

TCL commands:
-------------

There are no special tcl commands, only the usual bind procs.

The only one that should be mentioned is:

*pubm:seen <nick> <uhost> <hand> <chan> <text>
  triggers the AI seen
  returns: 1 if a reply was sent, 0 otherwise
Chris Gushue
MARP IRC/Forum Maintainer
http://gushue.net
Post Reply