diff --git a/code/_helpers/unsorted_vr.dm b/code/_helpers/unsorted_vr.dm index d7650deb8f..9336591552 100644 --- a/code/_helpers/unsorted_vr.dm +++ b/code/_helpers/unsorted_vr.dm @@ -38,4 +38,17 @@ part2 = total-part2 part3 = -part3 - return list(part1, part2, part3) \ No newline at end of file + return list(part1, part2, part3) + +//Sender is optional +/proc/admin_chat_message(var/message = "Debug Message", var/color = "#FFFFFF", var/sender) + if (!config.chat_webhook_url || !message) + return + spawn(0) + var/query_string = "type=adminalert" + query_string += "&key=[url_encode(config.chat_webhook_key)]" + query_string += "&msg=[url_encode(message)]" + query_string += "&color=[url_encode(color)]" + if(sender) + query_string += "&from=[url_encode(sender)]" + world.Export("[config.chat_webhook_url]?[query_string]") diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 29196f44d5..785d841702 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -458,6 +458,7 @@ emergency_shuttle.call_evac() log_game("[key_name(user)] has called the shuttle.") message_admins("[key_name_admin(user)] has called the shuttle.", 1) + admin_chat_message(message = "Emergency evac beginning! Called by [key_name(user)]!", color = "#CC2222") //VOREStation Add return @@ -505,6 +506,7 @@ log_game("[user? key_name(user) : "Autotransfer"] has called the shuttle.") message_admins("[user? key_name_admin(user) : "Autotransfer"] has called the shuttle.", 1) + admin_chat_message(message = "Autotransfer shuttle dispatched, shift ending soon.", color = "#2277BB") //VOREStation Add return diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 71069be22e..c96397eccc 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1227,6 +1227,15 @@ if((R_ADMIN|R_MOD|R_EVENT) & X.holder.rights) to_chat(X, take_msg) to_chat(M, "Your adminhelp is being attended to by [usr.client]. Thanks for your patience!") + // VoreStation Edit Start + if (config.chat_webhook_url) + spawn(0) + var/query_string = "type=admintake" + query_string += "&key=[url_encode(config.chat_webhook_key)]" + query_string += "&admin=[url_encode(key_name(usr.client))]" + query_string += "&user=[url_encode(key_name(M))]" + world.Export("[config.chat_webhook_url]?[query_string]") + // VoreStation Edit End else to_chat(usr, "Unable to locate mob.") diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index 089a91aaed..c2e6ec349c 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -149,6 +149,7 @@ //Public alerts if((damage > emergency_point) && !public_alert) global_announcer.autosay("WARNING: SUPERMATTER CRYSTAL DELAMINATION IMMINENT!", "Supermatter Monitor") + admin_chat_message(message = "SUPERMATTER DELAMINATING!", color = "#FF2222") //VOREStation Add public_alert = 1 else if(safe_warned && public_alert) global_announcer.autosay(alert_msg, "Supermatter Monitor") diff --git a/code/modules/security levels/security levels.dm b/code/modules/security levels/security levels.dm index 32d752c773..cad2311461 100644 --- a/code/modules/security levels/security levels.dm +++ b/code/modules/security levels/security levels.dm @@ -54,7 +54,7 @@ atc.reroute_traffic(yes = 1) // Tell them fuck off we're busy. else atc.reroute_traffic(yes = 0) - + admin_chat_message(message = "Security level is now: [uppertext(get_security_level())]", color = "#CC2222") //VOREStation Add /proc/get_security_level() switch(security_level)