2021-04-05 17:29:49 +02:00
.. _plugin-Karma:
Documentation for the Karma plugin for Supybot
==============================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Plugin for keeping track of Karma for users and things in a channel.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
Provides a simple tracker for setting Karma (thing++, thing--).
If `` config plugins.karma.allowUnaddressedKarma `` is set to `` True ``
(default since 2014.05.07), saying `boats++` will give 1 karma
to `` boats `` , and `` ships-- `` will subtract 1 karma from `` ships `` .
However, if you use this in a sentence, like
`` That deserves a ++. Kevin++ `` , 1 karma will be added to
`` That deserves a ++. Kevin `` , so you should only add or subtract karma
in a line that doesn't have anything else in it.
Alternatively, you can restrict karma tracking to nicks in the current
channel by setting `config plugins.Karma.onlyNicks` to `` True `` .
If `` config plugins.karma.allowUnaddressedKarma ` is set to ` False `` ,
you must address the bot with nick or prefix to add or subtract karma.
2021-04-05 22:56:40 +02:00
.. _commands-Karma:
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-karma-clear:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
clear [<channel> ] [<name> ]
Resets the karma of <name> to 0. If <name> is not given, resets everything.
2021-04-17 20:09:33 +02:00
.. _command-karma-dump:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
dump [<channel> ] <filename>
Dumps the Karma database for <channel> to <filename> in the bot's data directory. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-karma-karma:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
karma [<channel> ] [<thing> ...]
Returns the karma of <thing>. If <thing> is not given, returns the top N karmas, where N is determined by the config variable supybot.plugins.Karma.rankingDisplay. If one <thing> is given, returns the details of its karma; if more than one <thing> is given, returns the total karma of each of the things. <channel> is only necessary if the message isn't sent on the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-karma-load:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
load [<channel> ] <filename>
Loads the Karma database for <channel> from <filename> in the bot's data directory. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _command-karma-most:
2021-04-05 22:56:40 +02:00
2021-04-05 17:29:49 +02:00
most [<channel> ] {increased,decreased,active}
Returns the most increased, the most decreased, or the most active (the sum of increased and decreased) karma things. <channel> is only necessary if the message isn't sent in the channel itself.
2021-04-17 20:09:33 +02:00
.. _conf-Karma:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.allowSelfRating:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.allowSelfRating
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether users can adjust the karma of their nick.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.allowUnaddressedKarma:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.allowUnaddressedKarma
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will increase/decrease karma without being addressed.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.decrementChars:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.decrementChars
2021-12-04 03:19:12 +01:00
This config variable defaults to "--", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
A space separated list of characters to decrease karma.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.incrementChars:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.incrementChars
2021-12-04 03:19:12 +01:00
This config variable defaults to "++", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
A space separated list of characters to increase karma.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.mostDisplay:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.mostDisplay
2021-12-04 03:19:12 +01:00
This config variable defaults to "25", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines how many karma things are shown when the most command is called.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.onlyNicks:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.onlyNicks
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will only increase/decrease karma for nicks in the current channel.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.public
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether this plugin is publicly visible.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.rankingDisplay:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.rankingDisplay
2021-12-04 03:19:12 +01:00
This config variable defaults to "3", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines how many highest/lowest karma things are shown when karma is called with no arguments.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.response:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.response
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will reply with a success message when something's karma is increased or decreased.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Karma.simpleOutput:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Karma.simpleOutput
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will output shorter versions of the karma output when requesting a single thing's karma.