Added an autoresponse system for mentorhelp, using the existing button. (#24384)

* Added an autoresponse system for mentorhelp, using the existing button.

* Apply suggestions from code review

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Review suggestions.

* Add How to Objectives

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Build the response phrases lists only once.

* Add Russian autoresponse.

* Corrected Russian Paradise server name.

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2024-04-01 00:49:06 -07:00
committed by GitHub
parent eee8878024
commit 663e007d4d
5 changed files with 88 additions and 41 deletions
+7 -4
View File
@@ -1728,13 +1728,16 @@
SStickets.resolveTicket(index)
else if(href_list["autorespond"])
var/datum/controller/subsystem/tickets/ticketSystem
if(href_list["is_mhelp"])
to_chat(usr, "<span class='warning'>Auto responses are not available for mentor helps.</span>")
ticketSystem = SSmentor_tickets
else //Ahelp
ticketSystem = SStickets
if(!check_rights(ticketSystem.rights_needed))
return
var/index = text2num(href_list["autorespond"])
if(!check_rights(R_ADMIN|R_MOD))
return
SStickets.autoRespond(index)
ticketSystem.autoRespond(index)
if(href_list["convert_ticket"])
var/indexNum = text2num(href_list["convert_ticket"])