diff options
author | Voker57 <voker57@gmail.com> | 2009-12-14 00:00:58 +0300 |
---|---|---|
committer | Voker57 <voker57@gmail.com> | 2010-01-26 00:41:07 +0300 |
commit | f70fb815499c05b4864d3362dc2793e13083a082 (patch) | |
tree | b62e927863402a431dcd697bedc004dbab4a4e25 /data/rbot/plugins/markov.rb | |
parent | fa683e65dd0108da044074a66a5068f71a3fb904 (diff) |
markov: fixed parameter type
Diffstat (limited to 'data/rbot/plugins/markov.rb')
-rwxr-xr-x | data/rbot/plugins/markov.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index e6d9d1a8..e1886ddc 100755 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -27,7 +27,7 @@ class MarkovPlugin < Plugin :default => 50, :validate => Proc.new { |v| (0..100).include? v }, :desc => "Maximum number of words the bot should put in a sentence") - Config.register Config::IntegerValue.new('markov.learn_delay', + Config.register Config::FloatValue.new('markov.learn_delay', :default => 0.5, :validate => Proc.new { |v| v >= 0 }, :desc => "Time the learning thread spends sleeping after learning a line. If set to zero, learning from files can be very CPU intensive, but also faster.") |