diff --git a/bot.rb b/bot.rb index 734e3da..32314d7 100755 --- a/bot.rb +++ b/bot.rb @@ -26,8 +26,8 @@ request = Net::HTTP::Get.new(uri.request_uri) response = http.request(request) result = JSON.parse(response.body) $current_status = result["state"]["open"].to_s -p $current_status -p last_status +#p $current_status +#p last_status # If status differs from last time checked, put the announcement if (last_status != $current_status) @@ -47,7 +47,7 @@ if (last_status != $current_status) $config['worker']['last_status'] = status File.open(File.join(File.dirname(__FILE__), CONFIG_FILE), 'w') { |f| YAML.dump($config, f) } begin - puts tweet + #puts tweet client.update(tweet, {:lat => "51.527611", :lon => "7.464944", :display_coordinates => "true"}) rescue Exception => e puts e