.. _plugin-MoobotFactoids: MoobotFactoids ============== Purpose ------- Moobot factoid compatibility module. Moobot's factoids were originally designed to emulate Blootbot's factoids, so in either case, you should find this plugin comfortable. Usage ----- An alternative to the Factoids plugin, this plugin keeps factoids in your bot. To add factoid say ``@something is something`` And when you call ``@something`` the bot says ``something is something``. If you want the factoid to be in different format say (for example): ``@Hi is Hello`` And when you call ``@hi`` the bot says ``Hello.`` If you want the bot to use /mes with Factoids, that is possible too. ``@test is tests.`` and everytime when someone calls for ``test`` the bot answers ``* bot tests.`` If you want the factoid to have random answers say (for example): ``@fruit is (orange|apple|banana)``. So when ``@fruit`` is called the bot will reply with one of the listed fruits (random): ``orange``. If you want to replace the value of the factoid, for example: ``@no Hi is Hey`` when you call ``@hi`` the bot says ``Hey``. If you want to append to the current value of a factoid say: ``@Hi is also Hello``, so that when you call ``@hi`` the bot says ``Hey, or Hello.`` .. _commands-MoobotFactoids: Commands -------- .. _command-moobotfactoids-factinfo: factinfo [] Returns the various bits of info on the factoid for the given key. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-listauth: listauth [] 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!). is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-listkeys: listkeys [] Lists the keys of the factoids whose key contains the provided text. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-listvalues: listvalues [] Lists the keys of the factoids whose value contains the provided text. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-literal: literal [] Returns the literal factoid for the given factoid key. No parsing of the factoid value is done as it is with normal retrieval. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-lock: lock [] Locks the factoid with the given factoid key. Requires that the user be registered and have created the factoid originally. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-most: most [] {popular|authored|recent} Lists the most {popular|authored|recent} factoids. "popular" lists the most frequently requested factoids. "authored" lists the author with the most factoids. "recent" lists the most recently created factoids. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-random: random [] Displays a random factoid (along with its key) from the database. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-remove: remove [] Deletes the factoid with the given key. is only necessary if the message isn't sent in the channel itself. .. _command-moobotfactoids-unlock: unlock [] Unlocks the factoid with the given factoid key. Requires that the user be registered and have locked the factoid. is only necessary if the message isn't sent in the channel itself. .. _conf-MoobotFactoids: Configuration ------------- .. _conf-supybot.plugins.MoobotFactoids.mostCount: supybot.plugins.MoobotFactoids.mostCount This config variable defaults to "10", is network-specific, and is channel-specific. Determines how many items are shown when the 'most' command is called. .. _conf-supybot.plugins.MoobotFactoids.public: supybot.plugins.MoobotFactoids.public This config variable defaults to "True", is not network-specific, and is not channel-specific. Determines whether this plugin is publicly visible. .. _conf-supybot.plugins.MoobotFactoids.showFactoidIfOnlyOneMatch: supybot.plugins.MoobotFactoids.showFactoidIfOnlyOneMatch This config variable defaults to "True", is network-specific, and is channel-specific. Determines whether or not the factoid value will be shown when a listkeys search returns only one factoid key.