ichverstehe-isaac 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/isaac.gemspec +1 -1
- data/lib/isaac.rb +3 -0
- 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
|
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[
|
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
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)
|