jmazzi-atnotify 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/atnotify +3 -1
- metadata +1 -1
data/bin/atnotify
CHANGED
@@ -24,7 +24,9 @@ else
|
|
24
24
|
end
|
25
25
|
body = ""
|
26
26
|
twit.replies(conditions).each do |s|
|
27
|
-
|
27
|
+
p = Post.new
|
28
|
+
p.attributes = {:username => s.user.screen_name, :name => s.user.name, :body => s.text, :last_post_id => s.id}
|
29
|
+
p.save!
|
28
30
|
body << "#{s.user.name} said: #{s.text} At #{Time.parse(s.created_at).strftime("%I:%M %p %b %d")}\n"
|
29
31
|
end
|
30
32
|
send_mail(config['email'], body) unless body.empty?
|