<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,12 @@
 
     sudo gem install purzelrakete-mini --source=http://gems.github.com
     
+create a directory for mini and run the following
+
+    minigen create &lt;your-mini-dir&gt;
+    
+this creates two files in your mini dir. edit both as you see fit, then add your mini dir to your $PATH inside of your shell's rc file. 
+
 ## usage
 
 launch: (leave the # off the channel names. you can add many channel names, main one is first)
@@ -29,12 +35,7 @@ to send IRC commands from the bot, prepend '/':
 
 ### via irc  
 
-run stuff by typing ?command in the main mini channel or by dmsging mini bot. this will invoke a script called miniminimini with the command as an arg. there's a default script bundled as an executable in the gem. if you want to use your own, just make sure you place it before the bundled one in your $PATH. here's an example:
-
-    #!/usr/local/bin/ruby
-    puts &quot;called miniminimini with #{ ARGV.inspect }&quot;
-
-don't forget to chmod +x and replace the bang as appropriate. 
+run stuff by typing ?command in the main mini channel or by dmsging mini bot. this will invoke minicmd (in your mini dir) with the command as an arg. if you want the script to run a different language (ie php), just change the bang and replace with your own stuff. 
 
 you have to be on the control channel for the script to execute. this is the first channel in your list. 
 
@@ -44,22 +45,20 @@ post to `hostname:MINI_WEB_PORT/command/MINI_SECRET`. ie:
 
     curl -d &quot;netcat, lolcats, pigs, sweaty snout, nixon&quot; http://localhost:2345/echo/dscds789svjskdlvsdz789mkvcjvklsd6
     
-of course normally, you'd proxy to startup.com:2345 from something sitting behind :80. Set the ENV variables before starting mini. 
+of course normally, you'd proxy to startup.com:2345 from something sitting behind :80. Set up ports in minictl in your mini dir. 
+
+you can find `MINI_SECRET` and `MINI_WEB_PORT` inside of the minictl file in your mini directory. 
 
 ## configuration
 
 ### commands
 
-you can create commands simply by providing your own miniminimini script. ARGV.first is the command, the rest is arguments. mini comes bundled with a ruby based miniminimini script which you can extend by adding procs to ~/miniconfig.rb: 
+you can create commands simply by providing your own  minicmd script. ARGV.first is the command, the rest is arguments. mini comes bundled with a ruby based minicmd script which you can extend by adding procs to it:
 
       Mini::Bot.commands[&quot;echo&quot;] = lambda { |*args| puts args }
       
-just write that straight into ~/miniconfig.rb.
-
-### environment
+you can also require any mini plugins in there. 
 
-the following environment variables can be used to configure mini. 
+### web callbacks
 
-* `MINI_SECRET`: a secret key for the web server, ie /git_commit/kvds78ovdsjhvksd7ckjlds7cvds879bskdl
-* `MINI_CAT_PORT`: port for clients using netcat. 
-* `MINI_WEB_PORT`: port on which the web server is started. 
\ No newline at end of file
+there is a secret key (see above) wich you can configure inside of minicmd (inside of your mini dir).
\ No newline at end of file</diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,13 @@
 module Mini
   class Bot
-    cattr_accessor :commands
+    cattr_accessor :commands, :secret
     @@commands = {}
     
     def self.start(options)
       EventMachine::run do
         Mini::IRC.connect(options)
         EventMachine::start_server(&quot;0.0.0.0&quot;, options[:mini_port].to_i, Mini::Listener)
-        @@secret = options[:secret]  
+        Bot.secret = options[:secret]
         @@web.run! :port =&gt; options[:web_port].to_i
       end
     end</diff>
      <filename>lib/mini/bot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 @@web = Sinatra.new do
   post(&quot;/:command/:secret&quot;) do
     command, secret = params.delete(&quot;command&quot;), params.delete(&quot;secret&quot;)
-    Mini::IRC.connection.execute([command, params].join(&quot; &quot;)) if @@secret
+    Mini::IRC.connection.execute([command, params].join(&quot; &quot;)) if secret == Mini::Bot.secret
   end
 end
\ No newline at end of file</diff>
      <filename>lib/mini/web.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ require 'mini'
 #
 #  or write some commands straight into here, like...
 #
-Mini::Bot.commands[&quot;echo&quot;] = lambda { |*args| puts args }
+Mini::Bot.commands[&quot;echo&quot;] = lambda { |*args| puts args.join(&quot; &quot;) }
 
 command, *args = ARGV
 Mini::Bot.run(command, args)
\ No newline at end of file</diff>
      <filename>scripts/minicmd.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ec2cbe786ae1a53c00851c88ca123a6f381e96c</id>
    </parent>
  </parents>
  <author>
    <name>Rany Keddo</name>
    <email>rany@playtype.net</email>
  </author>
  <url>http://github.com/purzelrakete/mini/commit/f14506a136fb8acd142881f0390439aff210061b</url>
  <id>f14506a136fb8acd142881f0390439aff210061b</id>
  <committed-date>2009-03-07T13:33:41-08:00</committed-date>
  <authored-date>2009-03-07T13:33:41-08:00</authored-date>
  <message>webhooks fixed</message>
  <tree>771b425aec14819d4ee8a3b520f035dd6352fe4e</tree>
  <committer>
    <name>Rany Keddo</name>
    <email>rany@playtype.net</email>
  </committer>
</commit>
