prettier .whopalys
This commit is contained in:
parent
e96189b944
commit
f9489ea8b2
@ -989,14 +989,13 @@ namespace NadekoBot.Modules.Administration
|
|||||||
.Where(u => u.CurrentGame?.Name?.ToUpperInvariant() == game)
|
.Where(u => u.CurrentGame?.Name?.ToUpperInvariant() == game)
|
||||||
.Select(u => u.Name);
|
.Select(u => u.Name);
|
||||||
|
|
||||||
|
|
||||||
var arr = en as string[] ?? en.ToArray();
|
var arr = en as string[] ?? en.ToArray();
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
if (arr.Length == 0)
|
if (arr.Length == 0)
|
||||||
await e.Channel.SendMessage("Nobody. (not 100% sure)");
|
await e.Channel.SendMessage("Nobody. (not 100% sure)");
|
||||||
else
|
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}")))));
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user