From 73ebb257abbf1613008f5d4096872ecb4fb282c9 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 17 Oct 2016 14:09:56 +0200 Subject: [PATCH] Fixed some minor thingies --- src/NadekoBot/Modules/Administration/Commands/LogCommand.cs | 2 +- src/NadekoBot/Modules/Utility/Commands/CalcCommand.cs | 4 ++-- src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs index 890a6302..f7aba236 100644 --- a/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs +++ b/src/NadekoBot/Modules/Administration/Commands/LogCommand.cs @@ -254,7 +254,7 @@ namespace NadekoBot.Modules.Administration if (before.Status != after.Status) str = $"`{prettyCurrentTime}`**{usr.Username}** is now **{after.Status}**."; else - str = $"`{prettyCurrentTime}`**{usr.Username}** is now playing **{after.Status}**."; + str = $"`{prettyCurrentTime}`**{usr.Username}** is now playing **{after.Game}**."; UserPresenceUpdates.AddOrUpdate(logChannel, new List() { str }, (id, list) => { list.Add(str); return list; }); diff --git a/src/NadekoBot/Modules/Utility/Commands/CalcCommand.cs b/src/NadekoBot/Modules/Utility/Commands/CalcCommand.cs index e3ad166b..d0c5b652 100644 --- a/src/NadekoBot/Modules/Utility/Commands/CalcCommand.cs +++ b/src/NadekoBot/Modules/Utility/Commands/CalcCommand.cs @@ -23,11 +23,11 @@ namespace NadekoBot.Modules.Utility var expr = new NCalc.Expression(expression, NCalc.EvaluateOptions.IgnoreCase); expr.EvaluateParameter += Expr_EvaluateParameter; var result = expr.Evaluate(); - await msg.Reply(string.Format("Your expression evaluated to: {0}", expr.Error ?? result)); + await msg.Reply(string.Format("⚙ `{0}`", expr.Error ?? result)); } catch (Exception e) { - await msg.Reply($"Your expression failed to evaluate: {e.Message} "); + await msg.Reply($"Failed to evaluate: {e.Message} "); } } diff --git a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs index 806deac2..1cfc36a5 100644 --- a/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/InfoCommands.cs @@ -34,7 +34,7 @@ namespace NadekoBot.Modules.Utility `Id:` **{server.Id}** `Icon Url:` **{ server.IconUrl}** `TextChannels:` **{(await server.GetTextChannelsAsync()).Count()}** `VoiceChannels:` **{(await server.GetVoiceChannelsAsync()).Count()}** -`Members:` **{users.Count}** `Online:` **{users.Count(u => u.Status == UserStatus.Online)}** +`Members:` **{users.Count}** `-` {users.Count(u => u.Status == UserStatus.Online)}:green_heart: {users.Count(u => u.Status == UserStatus.Idle)}:yellow_heart: {users.Count(u => u.Status == UserStatus.DoNotDisturb)}:heart: {users.Count(u=> u.Status == UserStatus.Offline || u.Status == UserStatus.Unknown)}:black_heart: `Roles:` **{server.Roles.Count()}** `Created At:` **{createdAt}** ");