Problem mit duplicate tweets gefixt
This commit is contained in:
parent
54626ded9b
commit
93c3d92af8
4
bot.rb
4
bot.rb
|
@ -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) }
|
||||
begin
|
||||
client.update(tweet, {:lat => "51.527611", :lon => "7.464944", :display_coordinates => "true"})
|
||||
rescue
|
||||
# Nothing to do here
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue