Sends updates to discord bot when no rewards are found.
This commit is contained in:
parent
5ed78da30b
commit
2cf5a26934
|
@ -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";
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue