Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename ?status topic to ?status-webhook; add SUPPRESS_NOTIFICATIONS flag to roundend webhook #1351

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/__HELPERS/roundend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define POPCOUNT_SHUTTLE_ESCAPEES "shuttle_escapees" //Emergency shuttle only.
#define PERSONAL_LAST_ROUND "personal last round"
#define SERVER_LAST_ROUND "server last round"
#define DISCORD_SUPPRESS_NOTIFICATIONS (1 << 12) // monke edit: discord flag for silent messages

GLOBAL_LIST_INIT(achievements_unlocked, list())

Expand Down Expand Up @@ -347,6 +348,7 @@ GLOBAL_LIST_INIT(round_end_images, world.file2list("data/image_urls.txt")) // MO
webhook_info["username"] = CONFIG_GET(string/roundend_webhook_name)
if(CONFIG_GET(string/mentorhelp_webhook_pfp))
webhook_info["avatar_url"] = CONFIG_GET(string/roundend_webhook_pfp)
webhook_info["flags"] = DISCORD_SUPPRESS_NOTIFICATIONS // monke edit: @silent roundend pings
// Uncomment when servers are moved to TGS4
// send2chat(new /datum/tgs_message_conent("[initiator_ckey] | [message_content]"), "ahelp", TRUE)
var/list/headers = list()
Expand Down Expand Up @@ -890,3 +892,5 @@ GLOBAL_LIST_INIT(round_end_images, world.file2list("data/image_urls.txt")) // MO
var/winner_key
///The name of the area we earned this cheevo in
var/award_location

#undef DISCORD_SUPPRESS_NOTIFICATIONS
2 changes: 1 addition & 1 deletion code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
return tgsadminwho()

/datum/world_topic/status
keyword = "status-old" //monkestation edit
keyword = "status"

/datum/world_topic/status/Run(list/input)
. = list()
Expand Down
2 changes: 1 addition & 1 deletion monkestation/code/modules/slash_commands/world_topics.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/datum/world_topic/status_webhook
keyword = "status"
keyword = "status-webhook"
require_comms_key = TRUE


Expand Down
Loading