Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Created December 5, 2013 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenjiskywalker/7809645 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/7809645 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
tweet = {}
while true do
tweet[:new] = client.user_timeline("ystk_yrk").first.text
if tweet[:old] != tweet[:new] and not tweet[:old].nil?
puts "ゆりこ、オレだよ"
end
tweet[:old] = tweet[:new]
sleep 60
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment