From 0b9682b55dc4d94927ea1c15f72597a7fb30837a Mon Sep 17 00:00:00 2001 From: Simon Szustkowski Date: Thu, 11 Oct 2012 17:10:43 +0200 Subject: [PATCH] Geolocation eingefeatured --- bot.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.rb b/bot.rb index 52e853a..9a58889 100755 --- a/bot.rb +++ b/bot.rb @@ -33,10 +33,10 @@ $current_status = res.body.to_s.strip # If status differs from last time checked, put the announcement if (last_status != $current_status) if ($current_status == "offline") - tweet = "Der Raum ist jetzt OFFLINE." + tweet = "Der Raum ist jetzt OFFEN. #ctdo" status = "offline" elsif ($current_status == "online") - tweet = "Der Raum ist jetzt ONLINE." + tweet = "Der Raum ist jetzt GESCHLOSSEN. #ctdo." status = "online" else tweet = "Raumstatus UNBEKANNT." @@ -44,5 +44,5 @@ if (last_status != $current_status) end $config['worker']['last_status'] = status File.open(CONFIG_FILE, 'w') { |f| YAML.dump($config, f) } - client.update(tweet) + client.update(tweet, {:lat => "51.527611", :lon => "7.464944", :display_coordinates => "true"}) end