Dicken Fehler gefixt.
This commit is contained in:
parent
0b9682b55d
commit
54626ded9b
4
bot.rb
4
bot.rb
|
@ -33,10 +33,10 @@ $current_status = res.body.to_s.strip
|
||||||
# If status differs from last time checked, put the announcement
|
# If status differs from last time checked, put the announcement
|
||||||
if (last_status != $current_status)
|
if (last_status != $current_status)
|
||||||
if ($current_status == "offline")
|
if ($current_status == "offline")
|
||||||
tweet = "Der Raum ist jetzt OFFEN. #ctdo"
|
tweet = "Der Raum ist jetzt GESCHLOSSEN. #ctdo"
|
||||||
status = "offline"
|
status = "offline"
|
||||||
elsif ($current_status == "online")
|
elsif ($current_status == "online")
|
||||||
tweet = "Der Raum ist jetzt GESCHLOSSEN. #ctdo."
|
tweet = "Der Raum ist jetzt OFFEN. #ctdo."
|
||||||
status = "online"
|
status = "online"
|
||||||
else
|
else
|
||||||
tweet = "Raumstatus UNBEKANNT."
|
tweet = "Raumstatus UNBEKANNT."
|
||||||
|
|
Loading…
Reference in New Issue