Limnoria/plugins/Karma
Valentin Lorentz 9ab908759a Use importlib instead of imp.
importlib is deprecated.
2020-01-26 12:00:08 +01:00
..
locales Squashed commit of the following: 2014-12-20 14:37:27 +01:00
__init__.py Use importlib instead of imp. 2020-01-26 12:00:08 +01:00
config.py Karma: make onlyNicks a config option 2015-01-14 21:47:40 -05:00
messages.pot Squashed commit of the following: 2014-12-20 14:37:27 +01:00
plugin.py all plugins: Use msg.channel instead of msg.args[0] + give network name to self.registryValue. 2019-08-24 23:35:01 +02:00
README.md Karma: reword readme & mention the onlyNicks option 2017-09-20 21:46:38 -07:00
test.py Karma: add tests for onlyNicks 2015-01-17 02:49:30 -05:00

This plugins tracks karma for users and things in channels.

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 doesnt 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.