]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Fri Aug 05 23:55:20 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
authorTom Gilbert <tom@linuxbrit.co.uk>
Fri, 5 Aug 2005 22:55:36 +0000 (22:55 +0000)
committerTom Gilbert <tom@linuxbrit.co.uk>
Fri, 5 Aug 2005 22:55:36 +0000 (22:55 +0000)
  * few more tweaks preparing to release 0.9.9

ChangeLog
Rakefile
data/rbot/plugins/httpd.rb [deleted file]
data/rbot/plugins/httpd.rb.disabled [new file with mode: 0644]
data/rbot/templates/lart/praises
data/rbot/templates/levels.rbot
setup.rb

index bdd6c10dbf1e4521a75d9c69e539515db65bbe01..f4b150d22e3a6ec3dadf8cfa6037ad183246e773 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Aug 05 23:55:20 BST 2005  Tom Gilbert <tom@linuxbrit.co.uk>
+
+  * few more tweaks preparing to release 0.9.9
+
 Thu Aug 04 23:03:30 BST 2005  Tom Gilbert <tom@linuxbrit.co.uk>
 
   * Improved ircd recognition of rfc2812.rb
index 6e7965122abe174c37f6a3d2e705283003ef51b9..3ba7f09999f5fe95eec085753df3dc6aa1b25b3a 100644 (file)
--- 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 (file)
index 92fe3a8..0000000
+++ /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")
diff --git a/data/rbot/plugins/httpd.rb.disabled b/data/rbot/plugins/httpd.rb.disabled
new file mode 100644 (file)
index 0000000..92fe3a8
--- /dev/null
@@ -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 = "<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")
index ac923dd11c49176e6994786c65a0859bc0bed74b..3d89df744d5c90b90551cee16e0ac9e8dcf51db8 100644 (file)
@@ -1,2 +1,5 @@
 hugs <who>
 gives <who> some love
+gives <who> a cookie
+slaps <who> heartily on the back
+tickles <who>
index a445d5bed0deebe7a6a23dfd2b2e8fd60498cbf1..511f305189eddfb89c0c53b11a1a03f48347a1df 100644 (file)
@@ -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
index 0807023db269b13e37528d3d863a2767a9cebc8e..e97041d3527130a091b2f4b8934aa39154272403 100755 (executable)
--- a/setup.rb
+++ b/setup.rb
@@ -1,4 +1,4 @@
-#
+#!/usr/bin/env ruby
 # setup.rb
 #
 # Copyright (c) 2000-2004 Minero Aoki