Fixing Typo

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-06-03 21:38:05 -04:00
parent 1e5a6147b1
commit d2ee23bdb7

View File

@ -60,12 +60,12 @@ namespace ChaosBot.Discord.Modules
[RequireUserPermission(GuildPermission.ManageGuild)] [RequireUserPermission(GuildPermission.ManageGuild)]
public async Task RaffleCommandAdd(string user, int amount = 1) public async Task RaffleCommandAdd(string user, int amount = 1)
{ {
if (Program.Cfg.GetValue<int>($"Raffle:Servers:{Context.Guild.Id}:Raffle:Max") >= amount) if (Program.Cfg.GetValue<int>($"Servers:{Context.Guild.Id}:Raffle:Max") >= amount)
await RaffleCommandHelper("add", user, amount); await RaffleCommandHelper("add", user, amount);
else else
{ {
await ReplyAsync( await ReplyAsync(
$"You cannot give more then {Program.Cfg.GetValue<int>($"Raffle:Servers:{Context.Guild.Id}:Raffle:Max").ToString()} tickets at a time", false); $"You cannot give more then {Program.Cfg.GetValue<int>($"Servers:{Context.Guild.Id}:Raffle:Max").ToString()} tickets at a time", false);
_logger.Warn($"{Context.User.Username} attempted to give {amount} tickets to {user}!"); _logger.Warn($"{Context.User.Username} attempted to give {amount} tickets to {user}!");
} }
} }