$slot now tells you if you don't have enough currency

This commit is contained in:
Kwoth 2017-01-19 21:55:13 +01:00
parent bef907f619
commit ce6b0f383e

View File

@ -184,7 +184,10 @@ namespace NadekoBot.Modules.Gambling
}
if (!await CurrencyHandler.RemoveCurrencyAsync(Context.User, "Slot Machine", amount, false))
{
await Context.Channel.SendErrorAsync($"You don't have enough {NadekoBot.BotConfig.CurrencySign}.").ConfigureAwait(false);
return;
}
Interlocked.Add(ref totalBet, amount);
using (var bgFileStream = new MemoryStream(backgroundBuffer))
{