mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Tweak that
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user