ichverstehe-isaac 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +2 -2
  2. data/isaac.gemspec +1 -1
  3. data/lib/isaac.rb +3 -0
  4. metadata +1 -1
data/README.rdoc CHANGED
@@ -24,7 +24,7 @@ After the bot has connected to the IRC server you might want to join some channe
24
24
  === Responding to messages
25
25
  Joining a channel and sitting idle is not much fun. Let's repeat everything being said in these channels:
26
26
 
27
- on :channel, // do
27
+ on :channel do
28
28
  msg channel, message
29
29
  end
30
30
 
@@ -40,7 +40,7 @@ If you want to match private messages use the +on :private+ event:
40
40
 
41
41
  on :private, /^login (\S+) (\S+)/ do
42
42
  username = match[0]
43
- password = match[0]
43
+ password = match[1]
44
44
  # do something to authorize or whatevz.
45
45
  msg nick, "Login successful!"
46
46
  end
data/isaac.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "isaac"
3
- s.version = "0.2.1"
3
+ s.version = "0.2.2"
4
4
  s.date = "2009-02-23"
5
5
  s.summary = "The smallish DSL for writing IRC bots"
6
6
  s.email = "harry@vangberg.name"
data/lib/isaac.rb CHANGED
@@ -21,8 +21,11 @@ module Isaac
21
21
  end
22
22
 
23
23
  def start
24
+ puts "========================================="
25
+ puts "Connecting to #{@config.server}:#{@config.port}"
24
26
  @irc = IRC.new(self, @config)
25
27
  @irc.connect
28
+ puts "========================================="
26
29
  end
27
30
 
28
31
  def on(event, match=//, &b)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ichverstehe-isaac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Vangberg