summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/httpd.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-05 22:55:36 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-05 22:55:36 +0000
commit6878f1d98ae3038d5512818b6b00b6c3bc380862 (patch)
treee76a5ce4c5124c06949307964d5ee0f95d66f4fc /data/rbot/plugins/httpd.rb
parent83fd5d3b11539a07b740048ad93c09e31e8d6701 (diff)
Fri Aug 05 23:55:20 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* few more tweaks preparing to release 0.9.9
Diffstat (limited to 'data/rbot/plugins/httpd.rb')
-rw-r--r--data/rbot/plugins/httpd.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/data/rbot/plugins/httpd.rb b/data/rbot/plugins/httpd.rb
deleted file mode 100644
index 92fe3a80..00000000
--- a/data/rbot/plugins/httpd.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require 'webrick'
-
-class HttpPlugin < Plugin
- include WEBrick
-
-
- def initialize
- super
- @http_server = HTTPServer.new(
- :Port => 5555
- )
- @http_server.mount_proc("/") { |req, resp|
- resp['content-type'] = 'text/html'
- resp.body = "<html><head><title>rbot httpd plugin</title></head><body>"
- resp.body += "#{@bot.status} <br />"
- resp.body += "hello from rbot."
- resp.body += "</body>"
- raise HTTPStatus::OK
- }
- Thread.new {
- @http_server.start
- }
- end
- def cleanup
- @http_server.shutdown
- end
- def help(plugin, topic="")
- "no help yet"
- end
- def privmsg(m)
- end
-end
-
-plugin = HttpPlugin.new
-plugin.register("http")