diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index 258a695a25b..99644ce88fc 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -177,6 +177,10 @@ /datum/config_entry/string/githuburl config_entry_value = "https://www.github.com/tgstation/-tg-station" +/datum/config_entry/string/roundstatsurl + +/datum/config_entry/string/gamelogurl + /datum/config_entry/number/githubrepoid config_entry_value = null min_val = 0 diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 4c9920dc89c..6a7331c55d8 100755 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -612,6 +612,13 @@ SUBSYSTEM_DEF(ticker) if(end_string) end_state = end_string + var/statspage = CONFIG_GET(string/roundstatsurl) + var/gamelogloc = CONFIG_GET(string/gamelogurl) + if(statspage) + to_chat(world, "Round statistics and logs can be viewed at this website!") + else if(gamelogloc) + to_chat(world, "Round logs can be located at this website!") + log_game("Rebooting World. [reason]") world.Reboot() diff --git a/config/config.txt b/config/config.txt index 35989e500ac..da2cce93aa7 100644 --- a/config/config.txt +++ b/config/config.txt @@ -219,6 +219,17 @@ CHECK_RANDOMIZER ## Github address # GITHUBURL https://www.github.com/tgstation/tgstation +## Round specific stats address +## Link to round specific parsed logs; IE statbus. It is appended with the RoundID automatically by ticker/Reboot() +## This will take priority over the game logs address during reboot. +## Example: https://atlantaned.space/statbus/round.php?round= +# ROUNDSTATSURL + +## Game Logs address +## Incase you don't have a fancy parsing system, but still want players to be able to find where you keep your server's logs. +## Example: https://tgstation13.org/parsed-logs/basil/data/logs/ +# GAMELOGURL + ## Github repo id ##This can be found by going to https://api.github.com/users//repos ##Or https://api.github.com/orgs//repos if the repo owner is an organization