Last active
December 9, 2015 13:50
-
-
Save yswallow/0bca9a61c046379e0d97 to your computer and use it in GitHub Desktop.
最高
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
| require 'twitter' | |
| Client = Twitter::REST::Client.new do |config| | |
| config.consumer_key = 'ia662KE5wzuiovgmKtl82Bw22' | |
| config.consumer_secret = 'SLZ9SYfjzyEwpSCwh6kng8lP3TCevoPNSgZ6UWgUujfU1WWuCU' | |
| config.access_token = 'your access token' | |
| config.access_token_secret = 'your access token secret' | |
| end | |
| i = FileTest.exist?('/tmp/saikoh') ? File.read('/tmp/saikoh').to_i : 0 | |
| i += 1 | |
| saikoh = "最高#{ '!' * i }" | |
| Client.update saikoh | |
| puts saikoh | |
| File.write '/tmp/saikoh', i.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment