mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 09:34:52 +01:00
fix(ahelp): Makes pressing "handle" actually use webhook
Changes webhook set-up for ahelp "handleissue" from https://github.com/VOREStation/VOREStation/blame/f61f90b9e7596019705abf96ad1bac8a127c936f/code/modules/admin/verbs/adminhelp.dm#L413 to https://github.com/VOREStation/VOREStation/blame/f61f90b9e7596019705abf96ad1bac8a127c936f/code/modules/admin/topic.dm#L1348 This was done as it was discovered the fax machine "take_question" actually sends to discord. TODO: Standardizing whether we use world.Export() or SSwebhooks, if later fix SSWebhooks
This commit is contained in:
@@ -424,13 +424,14 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
||||
message_admins(msg)
|
||||
log_admin(msg)
|
||||
AddInteraction("[key_name_admin(usr)] is now handling this ticket.")
|
||||
SSwebhooks.send(
|
||||
WEBHOOK_AHELP_SENT,
|
||||
list(
|
||||
"name" = "Ticket ([id]) (Game ID: [game_id]) being handled.",
|
||||
"body" = "[key_name(usr)] is now handling the ticket."
|
||||
)
|
||||
)
|
||||
var/query_string = "type=admintake"
|
||||
query_string += "&key=[url_encode(config.chat_webhook_key)]"
|
||||
query_string += "&admin=[url_encode(key_name_admin(usr))]"
|
||||
query_string += "&user=[url_encode(key_name(initiator))]"
|
||||
world.Export("[config.chat_webhook_url]?[query_string]")
|
||||
|
||||
|
||||
|
||||
|
||||
//Show the ticket panel
|
||||
/datum/admin_help/proc/TicketPanel()
|
||||
|
||||
Reference in New Issue
Block a user