Skip to content

Instantly share code, notes, and snippets.

@erutaso
Last active August 29, 2015 13:57
Show Gist options
  • Save erutaso/9659616 to your computer and use it in GitHub Desktop.
Save erutaso/9659616 to your computer and use it in GitHub Desktop.
kazooNのNをインクリメントしていく
$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