]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/deepthoughts.rb
Some new feature(s)!
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / deepthoughts.rb
index 510b8c3c59566fc7039702ba056b8763d7c11421..87ccab2d5c060f78b8fbef6e0dd0e390c015bdef 100644 (file)
@@ -81,15 +81,9 @@ class DeepThoughts < Plugin
     end\r
     \r
     def deepthought(m, params)\r
-        thought = THOUGHTS[rand(THOUGHTS.length)]\r
-        m.reply thought\r
+        m.reply THOUGHTS.pick_one\r
     end\r
 end\r
 \r
 plugin = DeepThoughts.new\r
 plugin.map 'deepthought'\r
-#plugin.map 'movieplot', :action => 'do_movieplot'\r
-#plugin.map 'movietitle', :action => 'do_movietitle'\r
-\r
-\r
-\r