From 6878f1d98ae3038d5512818b6b00b6c3bc380862 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Fri, 5 Aug 2005 22:55:36 +0000 Subject: Fri Aug 05 23:55:20 BST 2005 Tom Gilbert * few more tweaks preparing to release 0.9.9 --- data/rbot/plugins/httpd.rb | 35 ----------------------------------- data/rbot/plugins/httpd.rb.disabled | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 data/rbot/plugins/httpd.rb create mode 100644 data/rbot/plugins/httpd.rb.disabled (limited to 'data/rbot/plugins') 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 = "rbot httpd plugin" - resp.body += "#{@bot.status}
" - resp.body += "hello from rbot." - resp.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") diff --git a/data/rbot/plugins/httpd.rb.disabled b/data/rbot/plugins/httpd.rb.disabled new file mode 100644 index 00000000..92fe3a80 --- /dev/null +++ b/data/rbot/plugins/httpd.rb.disabled @@ -0,0 +1,35 @@ +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 = "rbot httpd plugin" + resp.body += "#{@bot.status}
" + resp.body += "hello from rbot." + resp.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") -- cgit v1.2.3