| Commands for FunDB |
| add | [<channel>] <lart|insult|praise> <text> |
Adds another record to the data referred to in the first argument. For commands that will later respond with an ACTION (lart and praise), $who should be in the message to show who should be larted or praised. I.e. 'fundb add lart slices $who in half with a free AOL cd' would make the bot, when it used that lart against, say, jemfinch, to say '/me slices jemfinch in half with a free AOL cd' <channel> is only necessary if the message isn't sent in the channel itself. |
| change | [<channel>] <lart|insult|praise> <id> <regexp> |
Changes the data, referred to in the first argument, with the id number <id> according to the regular expression <regexp>. <id> is the zero-based index into the db; <regexp> is a regular expression of the form s/regexp/replacement/flags. <channel> is only necessary if the message isn't sent in the channel itself. |
| fundb | <command> [<args> ...] |
Command dispatcher for the FunDB plugin. Use 'list FunDB' to see the commands provided by this plugin. Use 'config list plugins.FunDB' to see the configuration values for this plugin. In most cases this dispatcher command is unnecessary; in cases where more than one plugin defines a given command, use this command to tell the bot which plugin's command to use. |
| get | [<channel>] <lart|insult|praise> <id> |
Gets the record with id <id> from the type specified. <channel> is only necessary if the message isn't sent in the channel itself. |
| info | [<channel>] <lart|insult|praise> <id> |
Gets the info for the record with id <id> from the type specified. <channel> is only necessary if the message isn't sent in the channel itself. |
| insult | [<channel>] <nick> |
Insults <nick>. <channel> is only necessary if the message isn't sent in the channel itself. |
| lart | [<channel>] [<id>] <text> [for <reason>] |
Uses a lart on <text> (giving the reason, if offered). Will use lart number <id> from the database when <id> is given. <channel> is only necessary if the message isn't sent in the channel itself. |
| praise | [<channel>] [<id>] <text> [for <reason>] |
Uses a praise on <text> (giving the reason, if offered). Will use praise number <id> from the database when <id> is given. <channel> is only necessary if the message isn't sent in the channel itself. |
| remove | [<channel>] <lart|insult|praise> <id> |
Removes the data, referred to in the first argument, with the id number <id> from the database. <channel> is only necessary if the message isn't sent in the channel itself. |
| search | [<channel>] <lart|insult|praise> <text> |
Searches the database specified for <text>, and returns the records with matching ids as well as a snippet of the text of each record. |
| stats | [<channel>] <lart|insult|praise> |
Returns the number of records, of the type specified, currently in the database. <channel> is only necessary if the message isn't sent in the channel itself. |