From 31ec4917e0f25e20537ed93d0ca1f654cc088cd8 Mon Sep 17 00:00:00 2001 From: Simon Szustkowski Date: Wed, 3 Sep 2014 10:50:30 +0200 Subject: [PATCH] Removed debug info --- bot.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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