Update FlowersHandler.cs

This commit is contained in:
appelemac 2016-05-05 11:56:13 +02:00
parent 45cd83fb69
commit 4b1ccd8cbc

View File

@ -22,10 +22,17 @@ namespace NadekoBot.Classes
return; return;
var flows = ""; 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; flows += NadekoBot.Config.CurrencySign;
} }
if (i < amount)
{
flows += $" and {amount - i} more {NadekoBot.Config.CurrencySign}!";
}
await u.SendMessage("👑Congratulations!👑\nYou received: " + flows).ConfigureAwait(false); await u.SendMessage("👑Congratulations!👑\nYou received: " + flows).ConfigureAwait(false);
} }