Expand the fax --> discord with config settings (#7755)

This commit is contained in:
Raeschen
2024-02-15 21:00:18 +01:00
committed by GitHub
parent 5cf5086241
commit 82114c4c1f
3 changed files with 116 additions and 5 deletions

View File

@@ -11,7 +11,23 @@
var/nodebot_enabled = 0 //So, nodebot is a supplement to the TGS discord bot pretty much. For things likes faxes and the manifest it's very helpful because it's able to render html into an image and post it.
var/nodebot_location //We need to print the manifest to this location so nodebot can render it to chat. //NOTE: TO BE REPLACED BY BETTER CODE FOR FETCHING MANIFEST
var/ahelp_channel_tag //This is for tgs4 channels, if you're not running on tgs4, this won't work anyways. If it's not set, it will default to the admin channel.
//These are for tgs4 channels, for discord chatbots used in TGS.
var/ahelp_channel_tag
var/fax_channel_tag
var/role_request_channel_tag
//These are for the role request TGS discord bot. Role IDs to ping.
var/role_request_id_command
var/role_request_id_security
var/role_request_id_engineering
var/role_request_id_medical
var/role_request_id_research
var/role_request_id_supply
var/role_request_id_service
var/role_request_id_expedition
var/role_request_id_silicon
var/discord_faxes_autoprint = 0 //Only turn this on if you're not using the nodebot.
var/discord_faxes_disabled = 0 //Turn this off if you don't want the TGS bot sending you messages whenever a fax is sent to central.
var/discord_ahelps_disabled = 0 //Turn this off if you don't want the TGS bot sending you messages whenever an ahelp ticket is created.
@@ -64,6 +80,29 @@
config.nodebot_location = value
if ("ahelp_channel_tag")
config.ahelp_channel_tag = value
if ("fax_channel_tag")
config.fax_channel_tag = value
if ("role_request_channel_tag")
config.role_request_channel_tag = value
if ("role_request_id_command")
config.role_request_id_command = value
if ("role_request_id_security")
config.role_request_id_security = value
if ("role_request_id_engineering")
config.role_request_id_engineering = value
if ("role_request_id_medical")
config.role_request_id_medical = value
if ("role_request_id_research")
config.role_request_id_research = value
if ("role_request_id_supply")
config.role_request_id_supply = value
if ("role_request_id_service")
config.role_request_id_service = value
if ("role_request_id_expedition")
config.role_request_id_expedition = value
if ("role_request_id_silicon")
config.role_request_id_silicon = value
var/list/ip_whitelist_lines = file2list("config/ip_whitelist.txt")
var/increment = 1