Skip to content

Commit

Permalink
Forget to prevent send empty discord payload
Browse files Browse the repository at this point in the history
just prevents the discord payload from being sent to the void...

Also in the future it is possible to make a better leaderboard, e.g. top of the week, top of the month, etc.
  • Loading branch information
OCOtheOmega authored Jul 31, 2023
1 parent b1cbc66 commit 6e85cc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Server/_NF/GameRule/NfAdventureRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ private async Task ReportRound(String message, int color = 0x77DDE7)
{
Logger.InfoS("discord", message);
String _webhookUrl = _configurationManager.GetCVar(CCVars.DiscordLeaderboardWebhook);
if (_webhookUrl == string.Empty)
return;

var payload = new WebhookPayload
{
Expand Down Expand Up @@ -288,4 +290,4 @@ public EmbedFooter()
{
}
}
}
}

0 comments on commit 6e85cc0

Please sign in to comment.