<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>plugins/boop.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+- plugins need callbacks, like on_join, etc.
+
 - multi-room support
 
 - gem-ify the bot and have it provide an executable to generate an application directory </diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,7 @@ module CampfireBot
       @campfire.login(@config['username'], @config['password'])
       @room = @campfire.find_room_by_name(@config['room'])
       @room.join
+      puts &quot;Ready.&quot;
     end
   
     def run(interval = 5)</diff>
      <filename>lib/bot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 module CampfireBot
   module Event
+    
     # This is an abstract base class for all event types, not to be used directly.
     class EventHandler
       
@@ -36,16 +37,16 @@ module CampfireBot
       def match?(msg)
         (
           msg[:message][0..0] == '!' || 
-          msg[:message]       =~ Regexp.new(&quot;^#{Bot.instance.config['nickname']},&quot;, Regexp::IGNORECASE)
+          msg[:message]       =~ Regexp.new(&quot;^#{bot.config['nickname']},&quot;, Regexp::IGNORECASE)
         ) &amp;&amp;
-        msg[:message].gsub(/^!/, '').gsub(Regexp.new(&quot;#{Bot.instance.config['nickname']},\\s*&quot;, Regexp::IGNORECASE), '').split(' ')[0].to_s.downcase == @matcher.downcase
+        msg[:message].gsub(/^!/, '').gsub(Regexp.new(&quot;#{bot.config['nickname']},\\s*&quot;, Regexp::IGNORECASE), '').split(' ')[0].to_s.downcase == @matcher.downcase
         # FIXME - the above should be just done with one regexp to pull out the first non-! non-&lt;bot name&gt; word.
       end
   
       protected
   
       def filter_message(msg)
-        msg[:message] = msg[:message].gsub(Regexp.new(&quot;^(!|#{Bot.instance.config['nickname']},)\\s*#{@matcher}\\s*&quot;, Regexp::IGNORECASE), '')
+        msg[:message] = msg[:message].gsub(Regexp.new(&quot;^(!|#{bot.config['nickname']},)\\s*#{@matcher}\\s*&quot;, Regexp::IGNORECASE), '')
         msg
       end
     end</diff>
      <filename>lib/event.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c08814cbaeb7a60c9003c1955765f700258c435e</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/timriley/campfire-bot/commit/0f6e12195b145b9eb2d44d1148f698454b61e704</url>
  <id>0f6e12195b145b9eb2d44d1148f698454b61e704</id>
  <committed-date>2008-10-30T05:39:19-07:00</committed-date>
  <authored-date>2008-10-30T05:39:19-07:00</authored-date>
  <message>initial work on markov plugin</message>
  <tree>2e12ea0359bcdad3e8190f47d80db75e76b396bb</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
