prettier .whopalys

This commit is contained in:
Master Kwoth 2016-06-02 21:34:25 +02:00
parent e96189b944
commit f9489ea8b2

View File

@ -989,14 +989,13 @@ namespace NadekoBot.Modules.Administration
.Where(u => u.CurrentGame?.Name?.ToUpperInvariant() == game)
.Select(u => u.Name);
var arr = en as string[] ?? en.ToArray();
int i = 0;
if (arr.Length == 0)
await e.Channel.SendMessage("Nobody. (not 100% sure)");
else
await e.Channel.SendMessage(string.Join("\n", arr.GroupBy(item => (i++) / 3).Select(ig => string.Join(" ", ig.Select(el => $"{el,-35}")))));
await e.Channel.SendMessage(string.Join("\n", arr.GroupBy(item => (i++) / 3).Select(ig => string.Join("", ig.Select(el => $"{el,-35}")))));
});
});