From 5b1573252784812d9b4d54e22d415c2d5d19f8a0 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 3 May 2016 18:06:19 +0200 Subject: [PATCH] fixes to logcommand --- NadekoBot/Modules/Administration/Commands/LogCommand.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NadekoBot/Modules/Administration/Commands/LogCommand.cs b/NadekoBot/Modules/Administration/Commands/LogCommand.cs index 10a1bb9f..e46d3376 100644 --- a/NadekoBot/Modules/Administration/Commands/LogCommand.cs +++ b/NadekoBot/Modules/Administration/Commands/LogCommand.cs @@ -134,8 +134,8 @@ $@"šŸ•”`[{prettyCurrentTime}]` **Message** šŸš® `#{e.Channel.Name}` await ch.SendMessage( $@"šŸ•”`[{prettyCurrentTime}]` **Message** šŸ“ `#{e.Channel.Name}` šŸ‘¤`{e.User?.ToString() ?? ("NULL")}` - `Old:` {e.Before.Text} - `New:` {e.After.Text}").ConfigureAwait(false); + `Old:` {e.Before.Text} + `New:` {e.After.Text}").ConfigureAwait(false); } catch { } } @@ -176,13 +176,13 @@ $@"šŸ•”`[{prettyCurrentTime}]` **Message** šŸ“ `#{e.Channel.Name}` if (e.Before.Name != e.After.Name) str += $"**Name Changed**\n\t`{e.Before.Name}` => `{e.After.Name}`"; else if (e.Before.AvatarUrl != e.After.AvatarUrl) - str += $"**Avatar Changed**\n\t {e.Before.AvatarUrl.ShortenUrl()} `=>` {e.After.AvatarUrl.ShortenUrl()}"; + str += $"**Avatar Changed**šŸ‘¤`{e.Before?.ToString()}`\n\t {await e.Before.AvatarUrl.ShortenUrl()} `=>` {await e.After.AvatarUrl.ShortenUrl()}"; else if (!e.Before.Roles.SequenceEqual(e.After.Roles)) { if (e.Before.Roles.Count() < e.After.Roles.Count()) { var diffRoles = e.After.Roles.Where(r => !e.Before.Roles.Contains(r)).Select(r => "`" + r.Name + "`"); - str += $"**User's Roles changed +**\nšŸ‘¤`{e.Before?.ToString()}`\n\tNow has {string.Join(", ", diffRoles)} role."; + str += $"**User's Roles changed +**šŸ‘¤`{e.Before?.ToString()}`\n\tNow has {string.Join(", ", diffRoles)} role."; } else if (e.Before.Roles.Count() > e.After.Roles.Count()) {