2021-04-05 17:29:49 +02:00
.. _plugin-QuoteGrabs:
Documentation for the QuoteGrabs plugin for Supybot
===================================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Quotegrabs are like IRC sound bites. When someone says something funny,
incriminating, stupid, outrageous, ... anything that might be worth
remembering, you can grab that quote for that person. With this plugin, you
can store many quotes per person and display their most recent quote, as well
as see who "grabbed" the quote in the first place.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Stores and displays quotes from channels. Quotes are stored randomly
and/or on user request.
2021-04-05 22:56:40 +02:00
.. _commands-QuoteGrabs:
2021-04-05 17:29:49 +02:00
Commands
--------
2021-12-04 02:50:28 +01:00
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-get:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
get [<channel> ] <id>
Return the quotegrab with the given <id>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-grab:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
grab [<channel> ] <nick>
Grabs a quote from <channel> by <nick> for the quotegrabs table. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-list:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
list [<channel> ] <nick>
Returns a list of shortened quotes that have been grabbed for <nick> as well as the id of each quote. These ids can be used to get the full quote. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-quote:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
quote [<channel> ] <nick>
Returns <nick>'s latest quote grab in <channel>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-random:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
random [<channel> ] [<nick> ]
Returns a randomly grabbed quote, optionally choosing only from those quotes grabbed for <nick>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-say:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
say [<channel> ] <id>
Return the quotegrab with the given <id>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-search:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
search [<channel> ] <text>
Searches for <text> in a quote. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-quotegrabs-ungrab:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
ungrab [<channel> ] <number>
Removes the grab <number> (the last by default) on <channel>. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _conf-QuoteGrabs:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.QuoteGrabs.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.QuoteGrabs.public
This config variable defaults to "True", is not network-specific, and is not channel-specific.
Determines whether this plugin is publicly visible.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.QuoteGrabs.randomGrabber:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.QuoteGrabs.randomGrabber
This config variable defaults to "False", is network-specific, and is channel-specific.
Determines whether the bot will randomly grab possibly-suitable quotes on occasion. The suitability of a given message is determined by ...
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.QuoteGrabs.randomGrabber.averageTimeBetweenGrabs:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.QuoteGrabs.randomGrabber.averageTimeBetweenGrabs
This config variable defaults to "864000", is network-specific, and is channel-specific.
Determines about how many seconds, on average, should elapse between random grabs. This is only an average value; grabs can happen from any time after half this time until never, although that's unlikely to occur.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.QuoteGrabs.randomGrabber.minimumCharacters:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.QuoteGrabs.randomGrabber.minimumCharacters
This config variable defaults to "8", is network-specific, and is channel-specific.
Determines the minimum number of characters in a message for it to be considered for random grabbing.
2021-04-22 00:29:15 +02:00
.. _conf-supybot.plugins.QuoteGrabs.randomGrabber.minimumWords:
2021-04-17 20:09:33 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.QuoteGrabs.randomGrabber.minimumWords
This config variable defaults to "3", is network-specific, and is channel-specific.
Determines the minimum number of words in a message for it to be considered for random grabbing.