diff --git a/.gitignore b/.gitignore index 5b6b072..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -config.yaml diff --git a/bot.rb b/bot.rb index eaa976f..70708f0 100755 --- a/bot.rb +++ b/bot.rb @@ -9,15 +9,15 @@ require 'uri' CONFIG_FILE = 'config.yaml' $config = YAML::load(File.open(File.join(File.dirname(__FILE__), CONFIG_FILE))) -# Configure and create the twitter client -Twitter.configure do |config| - config.consumer_key = $config['oauth']['consumer_key'] - config.consumer_secret = $config['oauth']['consumer_secret'] - config.oauth_token = $config['oauth']['request_token'] - config.oauth_token_secret = $config['oauth']['request_secret'] -end +## Configure and create the twitter client +#Twitter.configure do |config| +# config.consumer_key = $config['oauth']['consumer_key'] +# config.consumer_secret = $config['oauth']['consumer_secret'] +# config.oauth_token = $config['oauth']['request_token'] +# config.oauth_token_secret = $config['oauth']['request_secret'] +#end -client = Twitter::Client.new +#client = Twitter::Client.new # Read last known status from cache last_status = $config['worker']['last_status'].to_s diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..2cd93f5 --- /dev/null +++ b/config.yaml @@ -0,0 +1,8 @@ +--- +oauth: + consumer_key: 2sd6IvhVm2SuWIiA1F7yQ + consumer_secret: PCnvVXWeNZofxdKE5TDEUmJO88N8ElwzrjJdEV90 + request_token: 873661934-15exavg3cWFux0ON5WGhfHMXthcPeKVUrRk8nCBK + request_secret: 9kJoWvYMVEEbWIEUGtqpb4ib1QUfegQp2BGK6dw +worker: + last_status: unknown