From 221589d781314263d42796e7709db40152f4a0cf Mon Sep 17 00:00:00 2001 From: imcb Date: Tue, 11 Feb 2025 18:50:51 +0000 Subject: [PATCH] Postround webhook only for round end --- Content.Server/GameTicking/GameTicker.RoundFlow.cs | 9 --------- Resources/Locale/en-US/discord/round-notifications.ftl | 1 - 2 files changed, 10 deletions(-) diff --git a/Content.Server/GameTicking/GameTicker.RoundFlow.cs b/Content.Server/GameTicking/GameTicker.RoundFlow.cs index de0472f1aeee..c8e2333f67b6 100644 --- a/Content.Server/GameTicking/GameTicker.RoundFlow.cs +++ b/Content.Server/GameTicking/GameTicker.RoundFlow.cs @@ -671,15 +671,6 @@ private async void SendRoundStartedDiscordMessage() var payload = new WebhookPayload { Content = content }; await _discord.CreateMessage(_webhookIdentifier.Value, payload); - - if (_webhookIdentifierPostround == null) - return; - - content = Loc.GetString("discord-round-postround-started", - ("id", RoundId)); - payload = new WebhookPayload { Content = content }; - - await _discord.CreateMessage(_webhookIdentifierPostround.Value, payload); } catch (Exception e) { diff --git a/Resources/Locale/en-US/discord/round-notifications.ftl b/Resources/Locale/en-US/discord/round-notifications.ftl index 1451031c77d4..8492b4a9b694 100644 --- a/Resources/Locale/en-US/discord/round-notifications.ftl +++ b/Resources/Locale/en-US/discord/round-notifications.ftl @@ -3,5 +3,4 @@ discord-round-notifications-started = Round #{$id} on map "{$map}" started. discord-round-notifications-end = Round #{$id} has ended. It lasted for {$hours} hours, {$minutes} minutes, and {$seconds} seconds. discord-round-notifications-end-ping = <@&{$roleId}>, the server will reboot shortly! discord-round-notifications-unknown-map = Unknown -discord-round-postround-started = ```ROUND START: #{$id}``` discord-round-postround-end = ```ROUND END: #{$id}```