X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fkeywords.rb;h=daf3b40b011f2399be63914cfea6af1b23924932;hb=d30940cb5ff75cf7eab81f6a588b3b5297a762ad;hp=70802e35971555fcc64d26abb2772a9b4a2a12c6;hpb=992ef2edbf3eed7cb1d7c4c22f72cd203aff2aa5;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/keywords.rb b/lib/rbot/keywords.rb index 70802e35..daf3b40b 100644 --- a/lib/rbot/keywords.rb +++ b/lib/rbot/keywords.rb @@ -81,9 +81,11 @@ module Irc # handle it, checks for a keyword command or lookup, otherwise the message # is delegated to plugins class Keywords - BotConfig.register('keyword.listen', :type => :boolean, :default => false, + BotConfig.register BotConfigBooleanValue.new('keyword.listen', + :default => false, :desc => "Should the bot listen to all chat and attempt to automatically detect keywords? (e.g. by spotting someone say 'foo is bar')") - BotConfig.register('keyword.address', :type => :boolean, :default => true, + BotConfig.register BotConfigBooleanValue.new('keyword.address', + :default => true, :desc => "Should the bot require that keyword lookups are addressed to it? If not, the bot will attempt to lookup foo if someone says 'foo?' in channel") # create a new Keywords instance, associated to bot +bot+