2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-messageparser:
|
|
|
|
|
|
|
|
The MessageParser plugin
|
|
|
|
========================
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-show:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
show [<channel>] [--id] <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Looks up the value of *<regexp>* in the triggers database.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
If option *--id* specified, will retrieve by regexp id, not content.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-lock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
lock [<channel>] <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Locks the *<regexp>* so that it cannot be
|
|
|
|
removed or overwritten to. *<channel>* is only necessary if the message isn't
|
|
|
|
sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-rank:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
rank [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Returns a list of top-ranked regexps, sorted by usage count
|
|
|
|
(rank). The number of regexps returned is set by the
|
|
|
|
rankListLength registry value. *<channel>* is only necessary if the
|
|
|
|
message isn't sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-unlock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
unlock [<channel>] <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Unlocks the entry associated with *<regexp>* so that it can be
|
|
|
|
removed or overwritten. *<channel>* is only necessary if the message isn't
|
|
|
|
sent in the channel itself.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-vacuum:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
vacuum [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Vacuums the database for *<channel>*.
|
|
|
|
See SQLite vacuum doc here: http://www.sqlite.org/lang_vacuum.html
|
|
|
|
*<channel>* is only necessary if the message isn't sent in
|
|
|
|
the channel itself.
|
|
|
|
First check if user has the required capability specified in plugin
|
|
|
|
config requireVacuumCapability.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-info:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
info [<channel>] [--id] <regexp>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Display information about *<regexp>* in the triggers database.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
If option *--id* specified, will retrieve by regexp id, not content.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-list:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
list [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Lists regexps present in the triggers database.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself. Regexp ID listed in paretheses.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
remove [<channel>] [--id] <regexp>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Removes the trigger for *<regexp>* from the triggers database.
|
|
|
|
*<channel>* is only necessary if
|
|
|
|
the message isn't sent in the channel itself.
|
|
|
|
If option *--id* specified, will retrieve by regexp id, not content.
|
|
|
|
|
|
|
|
|
2011-06-28 08:13:53 +02:00
|
|
|
.. _command-add:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
add [<channel>] <regexp> <action>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Associates *<regexp>* with *<action>*. *<channel>* is only
|
|
|
|
necessary if the message isn't sent on the channel
|
|
|
|
itself. Action is echoed upon regexp match, with variables $1, $2,
|
|
|
|
etc. being interpolated from the regexp match groups.
|
|
|
|
|