Removed debug info

master
Simon Szustkowski 8 years ago
parent e39f2b025d
commit 31ec4917e0
  1. 6
      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

Loading…
Cancel
Save