Problem mit duplicate tweets gefixt

This commit is contained in:
Simon Szustkowski 2012-11-10 18:24:27 +01:00
parent 54626ded9b
commit 93c3d92af8
1 changed files with 5 additions and 1 deletions

6
bot.rb
View File

@ -44,5 +44,9 @@ if (last_status != $current_status)
end
$config['worker']['last_status'] = status
File.open(CONFIG_FILE, 'w') { |f| YAML.dump($config, f) }
client.update(tweet, {:lat => "51.527611", :lon => "7.464944", :display_coordinates => "true"})
begin
client.update(tweet, {:lat => "51.527611", :lon => "7.464944", :display_coordinates => "true"})
rescue
# Nothing to do here
end
end