Removed debug info

This commit is contained in:
Simon Szustkowski 2014-09-03 10:50:30 +02:00
parent e39f2b025d
commit 31ec4917e0
1 changed files with 3 additions and 3 deletions

6
bot.rb
View File

@ -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