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:
Runa Dacino
2023-10-23 15:06:46 +02:00
parent f61f90b9e7
commit cc6c813f6d
+8 -7
View File
@@ -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()