Revert "fix(ahelp): Makes pressing "handle" actually use webhook"

This reverts commit cc6c813f6d.
This commit is contained in:
izac112
2024-01-03 15:51:24 +01:00
parent 3f2aa6648e
commit eab7fba3fa
+7 -8
View File
@@ -424,14 +424,13 @@ 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.")
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]")
SSwebhooks.send( // YW EDIT: Reverts to use SSwebhooks
WEBHOOK_AHELP_SENT,
list(
"name" = "Ticket ([id]) (Game ID: [game_id]) being handled.",
"body" = "[key_name(usr)] is now handling the ticket."
)
)
//Show the ticket panel
/datum/admin_help/proc/TicketPanel()