From 4b1ccd8cbc743c8d1d5bc92faad514c0fc561b9b Mon Sep 17 00:00:00 2001 From: appelemac Date: Thu, 5 May 2016 11:56:13 +0200 Subject: [PATCH] Update FlowersHandler.cs --- NadekoBot/Classes/FlowersHandler.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Classes/FlowersHandler.cs b/NadekoBot/Classes/FlowersHandler.cs index f05ce474..516ba63e 100644 --- a/NadekoBot/Classes/FlowersHandler.cs +++ b/NadekoBot/Classes/FlowersHandler.cs @@ -22,10 +22,17 @@ namespace NadekoBot.Classes return; var flows = ""; - for (var i = 0; i < amount; i++) + //Maximum displayed will be ~40 + int i; + for (i = 0; i < 40 && i < amount; i++) { flows += NadekoBot.Config.CurrencySign; } + if (i < amount) + { + flows += $" and {amount - i} more {NadekoBot.Config.CurrencySign}!"; + } + await u.SendMessage("đŸ‘‘Congratulations!đŸ‘‘\nYou received: " + flows).ConfigureAwait(false); }