$lb now shows the names of people in the server it's invoked in, if any.

This commit is contained in:
Master Kwoth 2016-07-11 11:44:33 +02:00
parent ac26502d57
commit 718f0d4871

View File

@ -147,14 +147,14 @@ namespace NadekoBot.Modules.Gambling
return;
await e.Channel.SendMessage(
richest.Aggregate(new StringBuilder(
$@"```xl
Id $$$
$@"```xl
Id $$$
"),
(cur, cs) => cur.AppendLine(
$@"┣━━━━━━━━━━━━━━━━━━━╋━━━━━━━┫
{cs.UserId,-18} {cs.Value,5} ")
).ToString() + "┗━━━━━━━━━━━━━━━━━━━┻━━━━━━━┛```");
$@"┣━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━┫
{(e.Server.Users.Where(u => u.Id == (ulong)cs.UserId).FirstOrDefault()?.Name.TrimTo(18, true) ?? cs.UserId.ToString()),-20} {cs.Value,5} ")
).ToString() + "┗━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━┛```");
});
});
}