From: Tom Gilbert Date: Fri, 5 Aug 2005 22:55:36 +0000 (+0000) Subject: Fri Aug 05 23:55:20 BST 2005 Tom Gilbert X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6878f1d98ae3038d5512818b6b00b6c3bc380862;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Fri Aug 05 23:55:20 BST 2005 Tom Gilbert * few more tweaks preparing to release 0.9.9 --- diff --git a/ChangeLog b/ChangeLog index bdd6c10d..f4b150d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Aug 05 23:55:20 BST 2005 Tom Gilbert + + * few more tweaks preparing to release 0.9.9 + Thu Aug 04 23:03:30 BST 2005 Tom Gilbert * Improved ircd recognition of rfc2812.rb diff --git a/Rakefile b/Rakefile index 6e796512..3ba7f099 100644 --- a/Rakefile +++ b/Rakefile @@ -16,7 +16,7 @@ spec = Gem::Specification.new do |s| s.requirements << 'Ruby, version 1.8.0 (or newer)' # s.files = Dir.glob("**/*").delete_if { |item| item.include?(".svn") } - s.files = FileList['lib/**/*.rb', 'bin/*', 'data/**/*', 'AUTHORS', 'COPYING', 'README', 'REQUIREMENTS', 'TODO', 'ChangeLog', 'INSTALL', 'Usage_en.txt', 'setup.rb'].to_a + s.files = FileList['lib/**/*.rb', 'bin/*', 'data/**/*', 'AUTHORS', 'COPYING', 'README', 'REQUIREMENTS', 'TODO', 'ChangeLog', 'INSTALL', 'Usage_en.txt', 'setup.rb'].to_a.delete_if {|item| item == ".svn"} s.executables << 'rbot' s.autorequire = 'rbot/ircbot' 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") diff --git a/data/rbot/templates/lart/praises b/data/rbot/templates/lart/praises index ac923dd1..3d89df74 100644 --- a/data/rbot/templates/lart/praises +++ b/data/rbot/templates/lart/praises @@ -1,2 +1,5 @@ hugs gives some love +gives a cookie +slaps heartily on the back +tickles diff --git a/data/rbot/templates/levels.rbot b/data/rbot/templates/levels.rbot index a445d5be..511f3051 100644 --- a/data/rbot/templates/levels.rbot +++ b/data/rbot/templates/levels.rbot @@ -1,12 +1,19 @@ 100 auth 90 quit +90 restart 85 config 80 nick 80 nickserv +80 qauth 80 http -70 opmeh +70 opme +70 mode 70 say +70 action +40 quiet +40 talk 50 part +50 hide 50 join 15 delquote 12 msginsult diff --git a/setup.rb b/setup.rb index 0807023d..e97041d3 100755 --- a/setup.rb +++ b/setup.rb @@ -1,4 +1,4 @@ -# +#!/usr/bin/env ruby # setup.rb # # Copyright (c) 2000-2004 Minero Aoki