Tweak that

This commit is contained in:
AffectedArc07
2023-02-12 00:49:08 +00:00
parent b91aecbfd0
commit 103889c7df
2 changed files with 12 additions and 13 deletions
-13
View File
@@ -53,19 +53,6 @@ SUBSYSTEM_DEF(redis)
var/amount_registered = length(subbed_channels)
log_startup_progress("Registered [amount_registered] callback[amount_registered == 1 ? "" : "s"].")
/datum/controller/subsystem/redis/Shutdown()
// Send our presence to required channels
var/list/presence_data = list()
presence_data["author"] = "system"
presence_data["source"] = GLOB.configuration.system.instance_id
presence_data["message"] = "Disconnected at `[SQLtime()]` during round [GLOB.round_id]"
var/presence_text = json_encode(presence_data)
for(var/channel in list("byond.asay", "byond.msay")) // Channels to announce to
publish(channel, presence_text)
/datum/controller/subsystem/redis/fire()
check_messages()
+12
View File
@@ -179,6 +179,18 @@
SSblackbox.record_feedback("nested tally", "round_end_stats", escaped_on_pod_5, list("escapees", "on_pod_5"))
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_PRIMARY, "A round of [name] has ended - [surviving_total] survivors, [ghosts] ghosts.")
if(SSredis.connected)
// Send our presence to required channels
var/list/presence_data = list()
presence_data["author"] = "system"
presence_data["source"] = GLOB.configuration.system.instance_id
presence_data["message"] = "Round [GLOB.round_id] ended at `[SQLtime()]`"
var/presence_text = json_encode(presence_data)
for(var/channel in list("byond.asay", "byond.msay")) // Channels to announce to
SSredis.publish(channel, presence_text)
return 0