mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Merge pull request #37896 from ShizCalev/statbus-memes
Provides a link to round specific logs/stats on statbus when the round reboots.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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, "<span class='info'>Round statistics and logs can be viewed <a href=\"[statspage][GLOB.round_id]\">at this website!</a></span>")
|
||||
else if(gamelogloc)
|
||||
to_chat(world, "<span class='info'>Round logs can be located <a href=\"[gamelogloc]\">at this website!</a></span>")
|
||||
|
||||
log_game("<span class='boldannounce'>Rebooting World. [reason]</span>")
|
||||
|
||||
world.Reboot()
|
||||
|
||||
@@ -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/<user name here>/repos
|
||||
##Or https://api.github.com/orgs/<org name here>/repos if the repo owner is an organization
|
||||
|
||||
Reference in New Issue
Block a user