diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-10 23:51:00 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-03-10 23:51:00 +0100 |
commit | 6e75d722a918654642d01b52018b97e84bee3180 (patch) | |
tree | 497b0406db6e8ee433012666ae955c8a00eb1f12 /lib/rbot/plugins/httpd.rb | |
parent | 1ae131c231c308f13eaed68a3564c19f7eb7f2f1 (diff) |
svn import left spurious lib/rbot/plugins hanging around
Diffstat (limited to 'lib/rbot/plugins/httpd.rb')
-rw-r--r-- | lib/rbot/plugins/httpd.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/rbot/plugins/httpd.rb b/lib/rbot/plugins/httpd.rb deleted file mode 100644 index 92fe3a80..00000000 --- a/lib/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") |