Last active
August 29, 2015 13:57
-
-
Save erutaso/9659616 to your computer and use it in GitHub Desktop.
kazooNのNをインクリメントしていく
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$c | |
def turasa(status) | |
if status.text.include?("@murakamiginko tsurasa") then | |
text = status.text.sub("@murakamiginko tsurasa","") | |
$c += 1 | |
@rest_client.update_profile(:name => "kazoo#{$c.to_i}") | |
opt = {"in_reply_to_status_id"=>status.id.to_s} | |
tweet = "@#{status.user.screen_name} kazoo#{$c.to_i}になりました。現在のつらさは#{$c.to_i}です。" | |
@rest_client.update tweet,opt | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment