Last active
October 9, 2017 14:02
-
-
Save soramugi/feaa9865daf877d73caf 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
FROM ruby:2.4 | |
RUN gem install twitter | |
COPY rand_tweet.rb / | |
CMD ["ruby", "rand_tweet.rb"] |
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 = ENV['consumer_key'] | |
config.consumer_secret = ENV['consumer_secret'] | |
config.access_token = ENV['access_token'] | |
config.access_token_secret = ENV['access_token_secret'] | |
end | |
client.update(ENV['words'].split(',').sample) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment