mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Adds a discord ping for mhelps if there aren't any mentors online (#15533)
* V1
* send2discord_simple_nomentors() proc
* Oh and this too
* Proc name
* Warning comment
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
* Mentor logout notification message
Adding it in this PR since it's related
* Actually on second thought, this should definitely be its own PR instead
This reverts commit 1e93624c8b.
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
var/forward_all_ahelps = TRUE
|
||||
/// Admin role to ping if no admins are online. Disables if empty string
|
||||
var/admin_role_id = ""
|
||||
/// Mentor role to ping if no mentors are online. Disables if empty string
|
||||
var/mentor_role_id = ""
|
||||
/// List of all URLs for the main webhooks
|
||||
var/list/main_webhook_urls = list()
|
||||
/// List of all URLs for the admin webhooks
|
||||
@@ -21,6 +23,7 @@
|
||||
CONFIG_LOAD_BOOL(webhooks_enabled, data["enable_discord_webhooks"])
|
||||
CONFIG_LOAD_BOOL(forward_all_ahelps, data["forward_all_ahelps"])
|
||||
CONFIG_LOAD_STR(admin_role_id, data["admin_role_id"])
|
||||
CONFIG_LOAD_STR(mentor_role_id, data["mentor_role_id"])
|
||||
CONFIG_LOAD_LIST(main_webhook_urls, data["main_webhook_urls"])
|
||||
CONFIG_LOAD_LIST(mentor_webhook_urls, data["mentor_webhook_urls"])
|
||||
CONFIG_LOAD_LIST(admin_webhook_urls, data["admin_webhook_urls"])
|
||||
|
||||
Reference in New Issue
Block a user