mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-05-13 18:07:25 +02:00
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:
parent
ea0ba24e5c
commit
52e1ffcc50
@ -59,9 +59,9 @@ conf.registerChannelValue(Factoids, 'requireVoice',
|
|||||||
registry.Boolean(False, _("""Only allows a user with voice or above on a
|
registry.Boolean(False, _("""Only allows a user with voice or above on a
|
||||||
channel to use the command.""")))
|
channel to use the command.""")))
|
||||||
conf.registerChannelValue(Factoids, 'learnSeparator',
|
conf.registerChannelValue(Factoids, 'learnSeparator',
|
||||||
registry.String('as', _("""Determines what separator must be used in the
|
registry.String('is', _("""Determines what separator must be used in
|
||||||
learn command. Defaults to 'as' -- learn <key> as <value>. Users might
|
the learn command. Defaults to 'is' -- learn <key> is <value>.
|
||||||
feel more comfortable with 'is' or something else, so it's
|
Users might want to change this to something else, so it's
|
||||||
configurable.""")))
|
configurable.""")))
|
||||||
conf.registerChannelValue(Factoids, 'showFactoidIfOnlyOneMatch',
|
conf.registerChannelValue(Factoids, 'showFactoidIfOnlyOneMatch',
|
||||||
registry.Boolean(True, _("""Determines whether the bot will reply with the
|
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,
|
several approximate matching algorithms and return a list of matching keys,
|
||||||
before giving up.""")))
|
before giving up.""")))
|
||||||
conf.registerChannelValue(Factoids, 'format',
|
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
|
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"
|
substitutes apply, in addition to "$key" for the factoid's key and "$value"
|
||||||
for the factoid's value.""")))
|
for the factoid's value.""")))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user