]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
markov plugin: add the size of the learning queue to the status message.
authorSpencer Rinehart <spencer.rinehart@dominionenterprises.com>
Thu, 12 Feb 2009 20:14:44 +0000 (15:14 -0500)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 12 Feb 2009 20:21:18 +0000 (21:21 +0100)
data/rbot/plugins/markov.rb

index abbcb332f7d469c750bc4e4faa9d67680c1d82a5..6e692defafb99ba8568fad2fba58e4d2d13dc1e2 100644 (file)
@@ -99,7 +99,7 @@ class MarkovPlugin < Plugin
 
   def status(m,params)
     if @bot.config['markov.enabled']
-      m.reply "markov is currently enabled, #{probability?}% chance of chipping in"
+      m.reply "markov is currently enabled, #{probability?}% chance of chipping in, #{@learning_queue.length} messages in queue"
     else
       m.reply "markov is currently disabled"
     end