Updating for new ClearRaffle
This commit is contained in:
parent
8617dbae2f
commit
dee07b44f4
@ -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");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user