From f359b2fadbc1790dcc2cb21e96d506e912e04a12 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 16 May 2016 21:34:14 +0200 Subject: [PATCH] added nick and last online to .uinfo (will only work if those fields are set) --- NadekoBot/Modules/Administration/Commands/InfoCommands.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NadekoBot/Modules/Administration/Commands/InfoCommands.cs b/NadekoBot/Modules/Administration/Commands/InfoCommands.cs index be6e5ec1..968b4bba 100644 --- a/NadekoBot/Modules/Administration/Commands/InfoCommands.cs +++ b/NadekoBot/Modules/Administration/Commands/InfoCommands.cs @@ -83,9 +83,14 @@ namespace NadekoBot.Modules.Administration.Commands return; var sb = new StringBuilder(); sb.AppendLine($"`Name#Discrim:` **#{user.Name}#{user.Discriminator}**"); + if (!string.IsNullOrWhiteSpace(user.Nickname)) + sb.AppendLine($"`Nickname:` **{user.Nickname}**"); sb.AppendLine($"`Id:` **{user.Id}**"); sb.AppendLine($"`Current Game:` **{(string.IsNullOrWhiteSpace(user.CurrentGame) ? "-" : user.CurrentGame)}**"); sb.AppendLine($"`Joined At:` **{user.JoinedAt}**"); + if (user.LastOnlineAt != null) + sb.AppendLine($"`Last Online:` **{user.LastOnlineAt:HH:mm:ss}**"); + sb.AppendLine($"`Joined At:` **{user.JoinedAt}**"); sb.AppendLine($"`Roles:` **({user.Roles.Count()}) - {string.Join(", ", user.Roles.Select(r => r.Name))}**"); sb.AppendLine($"`AvatarUrl:` **{await user.AvatarUrl.ShortenUrl().ConfigureAwait(false)}**"); await e.Channel.SendMessage(sb.ToString()).ConfigureAwait(false);