diff options
author | Voker57 <voker57@gmail.com> | 2009-12-19 17:36:48 +0300 |
---|---|---|
committer | Voker57 <voker57@gmail.com> | 2010-01-26 00:41:07 +0300 |
commit | f85f0ce48ebe8cc46b2d2ee0eb6dad20abda9610 (patch) | |
tree | 109a06f5fa70e3eaaea62de324bbaee2187c598f /data/rbot | |
parent | 1a3201c4a601f45211acabab053ee47a8f7041fc (diff) |
markov: stats
Diffstat (limited to 'data/rbot')
-rwxr-xr-x | data/rbot/plugins/markov.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index eeb2acc0..a2b938a1 100755 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -714,6 +714,11 @@ class MarkovPlugin < Plugin m.okay end + + def stats(m, params) + m.reply "Markov status: chains: #{@chains.length} forward, #{@rchains.length} reverse, queued phrases: #{@learning_queue.size}" + end + end plugin = MarkovPlugin.new @@ -728,6 +733,7 @@ plugin.map 'markov readonly', :action => "readonly" plugin.map 'markov enable', :action => "enable" plugin.map 'markov disable', :action => "disable" plugin.map 'markov status', :action => "status" +plugin.map 'markov stats', :action => "stats" plugin.map 'chat about :seed1 [:seed2]', :action => "chat" plugin.map 'chat', :action => "rand_chat" plugin.map 'markov probability [:probability]', :action => "probability", |