Sends updates to discord bot when no rewards are found.

This commit is contained in:
benbierens 2024-04-12 08:35:20 +02:00
parent 5ed78da30b
commit 2cf5a26934
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace TestNetRewarder
public async Task<bool> 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";

View File

@ -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))
{