Factoids: make more sense with default config.

* Default separator to `is`.
    * It's more used than `as`.
    * Help text updated too.
* Default value as `$value`. Like with Topic plugin, the `$key could be`
is just annoyance which users are very likely to disable anyway.
This commit is contained in:
Mikaela Suomalainen 2014-06-06 22:52:09 +03:00
parent ea0ba24e5c
commit 52e1ffcc50

View File

@ -59,9 +59,9 @@ conf.registerChannelValue(Factoids, 'requireVoice',
registry.Boolean(False, _("""Only allows a user with voice or above on a
channel to use the command.""")))
conf.registerChannelValue(Factoids, 'learnSeparator',
registry.String('as', _("""Determines what separator must be used in the
learn command. Defaults to 'as' -- learn <key> as <value>. Users might
feel more comfortable with 'is' or something else, so it's
registry.String('is', _("""Determines what separator must be used in
the learn command. Defaults to 'is' -- learn <key> is <value>.
Users might want to change this to something else, so it's
configurable.""")))
conf.registerChannelValue(Factoids, 'showFactoidIfOnlyOneMatch',
registry.Boolean(True, _("""Determines whether the bot will reply with the
@ -77,7 +77,7 @@ conf.registerChannelValue(Factoids, 'replyApproximateSearchKeys',
several approximate matching algorithms and return a list of matching keys,
before giving up.""")))
conf.registerChannelValue(Factoids, 'format',
FactoidFormat(_('$key could be $value.'), _("""Determines the format of
FactoidFormat(_('$value'), _("""Determines the format of
the response given when a factoid's value is requested. All the standard
substitutes apply, in addition to "$key" for the factoid's key and "$value"
for the factoid's value.""")))