Provides generalized functions for saving, recalling, and tagging links, funny cat pictures, quotes, or practically anything else that can be put into a chat message.
The type of a thinge is arbitrary, and whenever a new thinge is added with a type that is not yet known, that type is created automatically.
Returns a specific thinge (when the ``id`` is given), a random thinge with a particular tag (when ``tag`` is given), or a random thinge of ``type`` from the collection (when only ``type`` is provided).
<type> [<id> | <tag>]
Searches through the thinges of a given type for any containing ``pattern``. Patterns may be simple strings or regular expressions.
<type> <pattern>
Saves a thinge to the collection and reports its ID. If there is no ``type`` yet, it is created automatically and a new ID sequence is started for it.
<type> <text>
Returns a map of thinges, where the keys are each thinge type's name and the value is how many are in that thinge's collection for the current network.
Removes the specified thinge from the collection.
<type> <id>
Tags the specified thinge with the given list of tags. Tags will also start with a ``#`` character - if you don't supply it, it will be added automatically before saving the tag.
<type> <id> <tag> [<tag> ...]
Lists the current types of thinges which have collections.
Like ``(thinge-find)``, will search through the type of thinges specified, but unlike find this function returns a summary of multiple matches. The ``limit`` argument may be used to change the number of matches shown (10 by default).
Search patterns are unanchored, case-insensitive regular expressions.
<type> <pattern> [<limit>]
To install App::RoboBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::RoboBot
CPAN shell
perl -MCPAN -e shell install App::RoboBot
For more information on module installation, please visit the detailed CPAN module installation guide.