Skip to content

Instantly share code, notes, and snippets.

@pnlybubbles
Created April 5, 2013 13:31
Show Gist options
  • Save pnlybubbles/5319287 to your computer and use it in GitHub Desktop.
Save pnlybubbles/5319287 to your computer and use it in GitHub Desktop.
RTした人にリプライ送る...。
# encoding: utf-8
require "./twitter-config.rb"
ID = 320165046791577600
rt = []
$pn1y.retweets(ID).each{ |res|
rt.push(res.user.screen_name)
}
REPLY_TEXT = "大好きだにゃん♪"
t = Hash.new
rt.each { |scrnm|
t[scrnm] = Thread.new {
begin
$pn1y.update("@#{scrnm} #{REPLY_TEXT}")
puts "@#{scrnm} #{REPLY_TEXT}"
rescue Exception => e
puts e
end
}
}
rt.each { |scrnm|
t[scrnm].join
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment