yay for autoresponse (#22937)

This commit is contained in:
matttheficus
2023-10-22 13:04:54 -04:00
committed by GitHub
parent bec3ef912b
commit 37d3a3dbe0
3 changed files with 8 additions and 0 deletions
@@ -16,6 +16,8 @@
var/rules_url
/// URL for the server github repository
var/github_url
/// URL for the server exploit report locaion
var/exploit_url
/// URL for server donations
var/donations_url
/// URL for a direct discord invite
@@ -41,6 +43,7 @@
CONFIG_LOAD_STR(forum_url, data["forum_url"])
CONFIG_LOAD_STR(rules_url, data["rules_url"])
CONFIG_LOAD_STR(github_url, data["github_url"])
CONFIG_LOAD_STR(exploit_url, data["exploit_url"])
CONFIG_LOAD_STR(donations_url, data["donations_url"])
CONFIG_LOAD_STR(discord_url, data["discord_url"])
CONFIG_LOAD_STR(discord_forum_url, data["discord_forum_url"])
@@ -232,6 +232,9 @@ SUBSYSTEM_DEF(tickets)
if(GLOB.configuration.url.github_url)
response_phrases["Github Issue Report"] = "To report a bug, please go to our <a href='[GLOB.configuration.url.github_url]'>Github page</a>. Then go to 'Issues'. Then 'New Issue'. Then fill out the report form. If the report would reveal current-round information, file it after the round ends."
if(GLOB.configuration.url.exploit_url)
response_phrases["Exploit Report"] = "To report an exploit, please go to our <a href='[GLOB.configuration.url.exploit_url]'>Exploit Report page</a>. Then 'Start New Topic'. Then fill out the topic with as much information about the exploit that you can. If possible, add steps taken to reproduce the exploit. The Development Team will be informed automatically of the post."
var/sorted_responses = list()
for(var/key in response_phrases) //build a new list based on the short descriptive keys of the master list so we can send this as the input instead of the full paragraphs to the admin choosing which autoresponse
sorted_responses += key