mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] Makes it so when "handle"-ing an ahelp as staff, a message is sent to discord (#7135)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -463,13 +463,14 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
|||||||
message_admins(msg)
|
message_admins(msg)
|
||||||
log_admin(msg)
|
log_admin(msg)
|
||||||
AddInteraction("[key_name_admin(usr)] is now handling this ticket.")
|
AddInteraction("[key_name_admin(usr)] is now handling this ticket.")
|
||||||
SSwebhooks.send(
|
var/query_string = "type=admintake"
|
||||||
WEBHOOK_AHELP_SENT,
|
query_string += "&key=[url_encode(config.chat_webhook_key)]"
|
||||||
list(
|
query_string += "&admin=[url_encode(key_name_admin(usr))]"
|
||||||
"name" = "Ticket ([id]) (Game ID: [game_id]) being handled.",
|
query_string += "&user=[url_encode(key_name(initiator))]"
|
||||||
"body" = "[key_name(usr)] is now handling the ticket."
|
world.Export("[config.chat_webhook_url]?[query_string]")
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
//Show the ticket panel
|
//Show the ticket panel
|
||||||
/datum/admin_help/proc/TicketPanel()
|
/datum/admin_help/proc/TicketPanel()
|
||||||
|
|||||||
Reference in New Issue
Block a user