summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/deepthoughts.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-15 12:47:50 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-15 12:47:50 +0000
commitaac65435db87b33b0a5aa2d8a92e95f0d2bb209f (patch)
treece27d047f71685d982c46d973fc6debb33959de7 /data/rbot/plugins/deepthoughts.rb
parent82b41fa7b22205d8eae75c1eb6999ac5fbf7849a (diff)
More minor plugin optimizations
Diffstat (limited to 'data/rbot/plugins/deepthoughts.rb')
-rw-r--r--data/rbot/plugins/deepthoughts.rb8
1 files changed, 1 insertions, 7 deletions
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'
-
-
-