Skip to content

Commit

Permalink
Merge pull request #1657 from irismessage/postround-trim
Browse files Browse the repository at this point in the history
Postround webhook only for round end
  • Loading branch information
Darkmajia authored Feb 11, 2025
2 parents a114612 + 221589d commit 19817da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions Content.Server/GameTicking/GameTicker.RoundFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion Resources/Locale/en-US/discord/round-notifications.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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}```

0 comments on commit 19817da

Please sign in to comment.