summaryrefslogtreecommitdiff
path: root/rbot/plugins/eightball.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 15:59:13 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-07-27 15:59:13 +0000
commit21949774b91eaec6ecde4eaa8ad121e2c0a36b87 (patch)
tree41a7601e168018ac203bad7ca8d7f9f82515bc28 /rbot/plugins/eightball.rb
parent51cf09ec02d089bfdd80e5f728cfc92a234dc437 (diff)
rearrange repo for packaging
Diffstat (limited to 'rbot/plugins/eightball.rb')
-rw-r--r--rbot/plugins/eightball.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/rbot/plugins/eightball.rb b/rbot/plugins/eightball.rb
deleted file mode 100644
index 64748490..00000000
--- a/rbot/plugins/eightball.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# Author: novex, daniel@novex.net.nz based on code from slap.rb by oct
-
-class EightBallPlugin < Plugin
- def initialize
- super
- @answers=['yes', 'no', 'outlook not so good', 'all signs point to yes', 'all signs point to no', 'why the hell are you asking me?', 'the answer is unclear']
- end
- def help(plugin, topic="")
- "magic 8-ball ruby bot module written by novex for nvinfo on #dumber@quakenet, usage:<botname> 8ball will i ever beat this cancer?"
- end
- def eightball(m, params)
- answers = @answers[rand(@answers.length)]
- action = "shakes the magic 8-ball... #{answers}"
- @bot.action m.replyto, action
- end
-end
-plugin = EightBallPlugin.new
-plugin.map '8ball', :action => 'usage'
-plugin.map '8ball *params', :action => 'eightball'