From 425aef81fa84a933d6d9a45e6837eaec31574a99 Mon Sep 17 00:00:00 2001 From: Simon Szustkowski Date: Wed, 3 Sep 2014 10:32:03 +0200 Subject: [PATCH] Added config, since the repo is private --- .gitignore | 1 - bot.rb | 16 ++++++++-------- config.yaml | 8 ++++++++ 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 config.yaml 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