From 2cf5a26934f36daf43485476707872cc29e38b6a Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 12 Apr 2024 08:35:20 +0200 Subject: [PATCH] Sends updates to discord bot when no rewards are found. --- Tools/TestNetRewarder/BotClient.cs | 2 +- Tools/TestNetRewarder/Processor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/TestNetRewarder/BotClient.cs b/Tools/TestNetRewarder/BotClient.cs index c112af4..426c501 100644 --- a/Tools/TestNetRewarder/BotClient.cs +++ b/Tools/TestNetRewarder/BotClient.cs @@ -26,7 +26,7 @@ namespace TestNetRewarder public async Task SendRewards(GiveRewardsCommand command) { - if (command == null || command.Rewards == null || !command.Rewards.Any()) return false; + if (command == null) return false; var result = await HttpPostJson(command); log.Log("Reward response: " + result); return result == "OK"; diff --git a/Tools/TestNetRewarder/Processor.cs b/Tools/TestNetRewarder/Processor.cs index a293495..3c8a6ec 100644 --- a/Tools/TestNetRewarder/Processor.cs +++ b/Tools/TestNetRewarder/Processor.cs @@ -69,7 +69,7 @@ namespace TestNetRewarder log.Log($"Found {outgoingRewards.Count} rewards to send. Found {marketAverages.Length} market averages."); - if (outgoingRewards.Any()) + if (outgoingRewards.Any() || marketAverages.Any() || eventsOverview.Any()) { if (!await SendRewardsCommand(outgoingRewards, marketAverages, eventsOverview)) {