mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Karma: Take profit of the return value of conf.registerPlugin().
(It breaks my documentation generator)
This commit is contained in:
parent
eefddc76f0
commit
4c05d97f4a
@ -40,24 +40,24 @@ def configure(advanced):
|
|||||||
from supybot.questions import expect, anything, something, yn
|
from supybot.questions import expect, anything, something, yn
|
||||||
conf.registerPlugin('Karma', True)
|
conf.registerPlugin('Karma', True)
|
||||||
|
|
||||||
conf.registerPlugin('Karma')
|
Karma = conf.registerPlugin('Karma')
|
||||||
|
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'simpleOutput',
|
conf.registerChannelValue(Karma, 'simpleOutput',
|
||||||
registry.Boolean(False, _("""Determines whether the bot will output shorter
|
registry.Boolean(False, _("""Determines whether the bot will output shorter
|
||||||
versions of the karma output when requesting a single thing's karma.""")))
|
versions of the karma output when requesting a single thing's karma.""")))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'response',
|
conf.registerChannelValue(Karma, 'response',
|
||||||
registry.Boolean(False, _("""Determines whether the bot will reply with a
|
registry.Boolean(False, _("""Determines whether the bot will reply with a
|
||||||
success message when something's karma is increased or decreased.""")))
|
success message when something's karma is increased or decreased.""")))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'rankingDisplay',
|
conf.registerChannelValue(Karma, 'rankingDisplay',
|
||||||
registry.Integer(3, _("""Determines how many highest/lowest karma things
|
registry.Integer(3, _("""Determines how many highest/lowest karma things
|
||||||
are shown when karma is called with no arguments.""")))
|
are shown when karma is called with no arguments.""")))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'mostDisplay',
|
conf.registerChannelValue(Karma, 'mostDisplay',
|
||||||
registry.Integer(25, _("""Determines how many karma things are shown when
|
registry.Integer(25, _("""Determines how many karma things are shown when
|
||||||
the most command is called.""")))
|
the most command is called.""")))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'allowSelfRating',
|
conf.registerChannelValue(Karma, 'allowSelfRating',
|
||||||
registry.Boolean(False, _("""Determines whether users can adjust the karma
|
registry.Boolean(False, _("""Determines whether users can adjust the karma
|
||||||
of their nick.""")))
|
of their nick.""")))
|
||||||
conf.registerChannelValue(conf.supybot.plugins.Karma, 'allowUnaddressedKarma',
|
conf.registerChannelValue(Karma, 'allowUnaddressedKarma',
|
||||||
registry.Boolean(False, _("""Determines whether the bot will
|
registry.Boolean(False, _("""Determines whether the bot will
|
||||||
increase/decrease karma without being addressed.""")))
|
increase/decrease karma without being addressed.""")))
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+limnoria (2011-10-27T12:31:37+0200)'
|
version = '0.83.4.1+limnoria (2011-10-28T22:44:09+0200)'
|
||||||
|
Loading…
Reference in New Issue
Block a user