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