Skip to content

Commit

Permalink
role to ping for new round to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe committed Nov 26, 2023
1 parent 4ea5ae7 commit 9ecd63e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/gamemodes/game_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
if(escaped_on_pod_5)
SSblackbox.record_feedback("nested tally", "round_end_stats", escaped_on_pod_5, list("escapees", "on_pod_5"))

GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_PRIMARY, "A round of [name] has ended - [surviving_total] survivors, [ghosts] ghosts.<br> <@&1100491296658956410>") // SS220 Addition
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_PRIMARY, "A round of [name] has ended - [surviving_total] survivors, [ghosts] ghosts. <@&[GLOB.configuration.discord.new_round_waiting_role]>") // SS220 Addition
if(SSredis.connected)
// Send our presence to required channels
var/list/presence_data = list()
Expand Down
2 changes: 2 additions & 0 deletions config/example/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ mentor_role_id = ""
forward_all_ahelps = true


new_round_waiting_role_id = ""

################################################################


Expand Down
1 change: 1 addition & 0 deletions modular_ss220/_misc/_misc.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
#include "code/global_procs.dm"
#include "code/ss220_general_config.dm"
#include "code/icons.dm"
#include "code/discord_configuration.dm"
6 changes: 6 additions & 0 deletions modular_ss220/_misc/code/discord_configuration.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/datum/configuration_section/discord_configuration
/// Admin role to ping if no admins are online. Disables if empty string
var/new_round_waiting_role = ""

/datum/configuration_section/discord_configuration/load_data(list/data)
CONFIG_LOAD_STR(new_round_waiting_role, data["new_round_waiting_role_id"])

0 comments on commit 9ecd63e

Please sign in to comment.