From aac65435db87b33b0a5aa2d8a92e95f0d2bb209f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 15 Feb 2007 12:47:50 +0000 Subject: More minor plugin optimizations --- data/rbot/plugins/deepthoughts.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'data/rbot/plugins/deepthoughts.rb') diff --git a/data/rbot/plugins/deepthoughts.rb b/data/rbot/plugins/deepthoughts.rb index 510b8c3c..87ccab2d 100644 --- a/data/rbot/plugins/deepthoughts.rb +++ b/data/rbot/plugins/deepthoughts.rb @@ -81,15 +81,9 @@ class DeepThoughts < Plugin end def deepthought(m, params) - thought = THOUGHTS[rand(THOUGHTS.length)] - m.reply thought + m.reply THOUGHTS.pick_one end end plugin = DeepThoughts.new plugin.map 'deepthought' -#plugin.map 'movieplot', :action => 'do_movieplot' -#plugin.map 'movietitle', :action => 'do_movietitle' - - - -- cgit v1.2.3