From ce6b0f383ebee6a952f7276fb113255f84acf333 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 19 Jan 2017 21:55:13 +0100 Subject: [PATCH] $slot now tells you if you don't have enough currency --- src/NadekoBot/Modules/Gambling/Commands/Slots.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs index 7ed1f9ee..e1671a6d 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs @@ -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)) {