Added a shutdown timer
This commit is contained in:
@@ -723,6 +723,7 @@ while running:
|
||||
temp_output["apiPlayer"] = api_player
|
||||
temp_output["roundsPlayed"] = global_rounds_played
|
||||
temp_output["timestamp"] = math.floor(time.time())
|
||||
temp_output["shutdownTimer"] = math.floor(global_shutdown_timer - current_shutdown_timer)
|
||||
temp_output["boot"] = boot_timestamp
|
||||
temp_output["delay"] = global_irc_send_timeout
|
||||
temp_output["maxLobbies"] = global_max_lobbies
|
||||
|
||||
@@ -132,6 +132,10 @@ function updateUnalikeDisplay(unalikeJson) {
|
||||
if (unalikeJson.delay) {
|
||||
newStatus += "</p><p>Current delay: " + unalikeJson.delay + " seconds between commands. (~" + unalikeJson.delay*4 + " seconds to create a lobby.)";
|
||||
}
|
||||
|
||||
if (unalikeJson.shutdownTimer) {
|
||||
newStatus += "</p><p>If nothing happens, Unalike will shut down in " + unalikeJson.shutdownTimer + " seconds.";
|
||||
}
|
||||
// dynamicJsonElement = document.getElementById("dynamic-json");
|
||||
// dynamicJsonElement.innerHTML = JSON.stringify(unalikeJson);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user