diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 15:59:13 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-27 15:59:13 +0000 |
commit | 21949774b91eaec6ecde4eaa8ad121e2c0a36b87 (patch) | |
tree | 41a7601e168018ac203bad7ca8d7f9f82515bc28 /rbot/plugins/httpd.rb | |
parent | 51cf09ec02d089bfdd80e5f728cfc92a234dc437 (diff) |
rearrange repo for packaging
Diffstat (limited to 'rbot/plugins/httpd.rb')
-rw-r--r-- | rbot/plugins/httpd.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/rbot/plugins/httpd.rb b/rbot/plugins/httpd.rb deleted file mode 100644 index 92fe3a80..00000000 --- a/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") |