diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-30 21:35:57 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-30 21:35:57 +0000 |
commit | d30940cb5ff75cf7eab81f6a588b3b5297a762ad (patch) | |
tree | b3f0a62c9255b2ecb8a4f2c927bd116e220b0594 /lib/rbot/keywords.rb | |
parent | 992ef2edbf3eed7cb1d7c4c22f72cd203aff2aa5 (diff) |
Sat Jul 30 22:33:36 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* Config items are now objects, various types are available.
* The config wizard will now use registered config items if :wizard is set
to true for those items. It will ask questions in the order they were
registered.
* The config module now works for doing runtime configuration.
* misc refactoring
Diffstat (limited to 'lib/rbot/keywords.rb')
-rw-r--r-- | lib/rbot/keywords.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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+ |