$slot now tells you if you don't have enough currency
This commit is contained in:
parent
bef907f619
commit
ce6b0f383e
@ -184,7 +184,10 @@ namespace NadekoBot.Modules.Gambling
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!await CurrencyHandler.RemoveCurrencyAsync(Context.User, "Slot Machine", amount, false))
|
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;
|
return;
|
||||||
|
}
|
||||||
Interlocked.Add(ref totalBet, amount);
|
Interlocked.Add(ref totalBet, amount);
|
||||||
using (var bgFileStream = new MemoryStream(backgroundBuffer))
|
using (var bgFileStream = new MemoryStream(backgroundBuffer))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user