Updating for new ClearRaffle

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-06-03 20:39:20 -04:00
parent 8617dbae2f
commit dee07b44f4

View File

@ -162,10 +162,12 @@ namespace ChaosBot.Discord.Modules
Raffle winner = RaffleRepository.PickRandom(); Raffle winner = RaffleRepository.PickRandom();
sb.Append($"<@{winner.userId}> has won the raffle!"); sb.Append($"<@{winner.userId}> has won the raffle!");
} }
private void ClearRaffle(StringBuilder sb, bool noOutput = false) private void ClearRaffle(StringBuilder sb, bool noOutput = false)
{ {
int Removed = RaffleRepository.ClearRaffle(); int Removed = RaffleRepository.Count();
RaffleRepository.ClearRaffle();
sb.AppendLine($"{Context.User.Mention} has cleared all {Removed} rafflepoints"); sb.AppendLine($"{Context.User.Mention} has cleared all {Removed} rafflepoints");
} }