SSdiscord tweaks (#14899)

* SSdiscord tweaks

* Update code/modules/admin/verbs/adminhelp.dm
This commit is contained in:
AffectedArc07
2020-11-26 05:01:43 +00:00
committed by GitHub
parent 4fc98b84f4
commit e859088889
10 changed files with 45 additions and 35 deletions

View File

@@ -252,14 +252,14 @@
/// Role ID to be pinged for administrative events
var/discord_admin_role_id = null // Intentional null usage
/// Webhook URL for the main public webhook
var/discord_main_webhook_url
/// Webhook URLs for the main public webhook
var/list/discord_main_webhook_urls = list()
/// Webhook URL for the admin webhook
var/discord_admin_webhook_url
/// Webhook URLs for the admin webhook
var/list/discord_admin_webhook_urls = list()
/// Webhook URL for the mentor webhook
var/discord_mentor_webhook_url
/// Webhook URLs for the mentor webhook
var/list/discord_mentor_webhook_urls = list()
/// Do we want to forward all adminhelps to the discord or just ahelps when admins are offline.
/// (This does not mean all ahelps are pinged, only ahelps sent when staff are offline get the ping, regardless of this setting)
@@ -749,11 +749,11 @@
if("discord_webhooks_admin_role_id")
discord_admin_role_id = "[value]" // This MUST be a string because BYOND doesnt like massive integers
if("discord_webhooks_main_url")
discord_main_webhook_url = value
discord_main_webhook_urls = splittext(value, "|")
if("discord_webhooks_admin_url")
discord_admin_webhook_url = value
discord_admin_webhook_urls = splittext(value, "|")
if("discord_webhooks_mentor_url")
discord_mentor_webhook_url = value
discord_mentor_webhook_urls = splittext(value, "|")
if("discord_forward_all_ahelps")
discord_forward_all_ahelps = TRUE
// End discord stuff