2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
.. _plugin-moobotfactoids:
|
|
|
|
|
|
|
|
The MoobotFactoids plugin
|
|
|
|
=========================
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Reading factoids
|
|
|
|
----------------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-listauth:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids listauth [<channel>] <author name>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Lists the keys of the factoids with the given author. Note that if an
|
|
|
|
author has an integer name, you'll have to use that author's id to use
|
|
|
|
this function (so don't use integer usernames!). *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-random:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids random [<channel>]
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Displays a random factoid (along with its key) from the database.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-literal:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids literal [<channel>] <factoid key>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Returns the literal factoid for the given factoid key. No parsing of
|
|
|
|
the factoid value is done as it is with normal retrieval. *<channel>*
|
|
|
|
is only necessary if the message isn't sent in the channel itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-listvalues:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids listvalues [<channel>] <text>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Lists the keys of the factoids whose value contains the provided text.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-factinfo:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids factinfo [<channel>] <factoid key>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
|
|
|
Returns the various bits of info on the factoid for the given key.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-most:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids most [<channel>] {popular|authored|recent}
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Lists the most *{popular|authored|recent}* factoids. "popular" lists the
|
2011-06-28 08:11:32 +02:00
|
|
|
most frequently requested factoids. "authored" lists the author with
|
|
|
|
the most factoids. "recent" lists the most recently created factoids.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-listkeys:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids listkeys [<channel>] <text>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Lists the keys of the factoids whose key contains the provided text.
|
|
|
|
*<channel>* is only necessary if the message isn't sent in the channel
|
|
|
|
itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Administration
|
|
|
|
--------------
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-lock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids lock [<channel>] <factoid key>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Locks the factoid with the given factoid key. Requires that the user
|
|
|
|
be registered and have created the factoid originally. *<channel>* is
|
|
|
|
only necessary if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-unlock:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids unlock [<channel>] <factoid key>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Unlocks the factoid with the given factoid key. Requires that the
|
|
|
|
user be registered and have locked the factoid. *<channel>* is only
|
|
|
|
necessary if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
.. _command-moobotfactoids-remove:
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
moobotfactoids remove [<channel>] <factoid key>
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-06-28 17:29:38 +02:00
|
|
|
Deletes the factoid with the given key. *<channel>* is only necessary
|
|
|
|
if the message isn't sent in the channel itself.
|
2011-06-28 08:11:32 +02:00
|
|
|
|
2011-10-28 22:49:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
.. _plugin-moobotfactoids-config:
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. _supybot.plugins.MoobotFactoids.mostCount:
|
|
|
|
|
|
|
|
supybot.plugins.MoobotFactoids.mostCount
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Default value: 10
|
|
|
|
|
|
|
|
Determines how many items are shown when the 'most' command is called.
|
|
|
|
|
|
|
|
.. _supybot.plugins.MoobotFactoids.showFactoidIfOnlyOneMatch:
|
|
|
|
|
|
|
|
supybot.plugins.MoobotFactoids.showFactoidIfOnlyOneMatch
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Default value: True
|
|
|
|
|
|
|
|
Determines whether or not the factoid value will be shown when a listkeys search returns only one factoid key.
|
|
|
|
|
|
|
|
.. _supybot.plugins.MoobotFactoids.public:
|
|
|
|
|
|
|
|
supybot.plugins.MoobotFactoids.public
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Default value: True
|
|
|
|
|
|
|
|
Determines whether this plugin is publicly visible.
|
|
|
|
|