From 6f4222497e5ca3c7e41b0644a8ca29af9e913038 Mon Sep 17 00:00:00 2001 From: Noi Date: Fri, 22 May 2020 17:00:34 -0700 Subject: [PATCH] Fix bb.when output (I don't get how this fixed it) --- BirthdayBot.csproj | 2 +- UserInterface/UserCommands.cs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/BirthdayBot.csproj b/BirthdayBot.csproj index bef8e00..0992e52 100644 --- a/BirthdayBot.csproj +++ b/BirthdayBot.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.1 - 2.0.0 + 2.0.1 BirthdayBot NoiTheCat BirthdayBot diff --git a/UserInterface/UserCommands.cs b/UserInterface/UserCommands.cs index 787afee..076e0a1 100644 --- a/UserInterface/UserCommands.cs +++ b/UserInterface/UserCommands.cs @@ -253,9 +253,12 @@ namespace BirthdayBot.UserInterface return; } - await reqChannel.SendMessageAsync(Common.FormatName(searchTarget, false) + ": " - + $"`{ searchTargetData.BirthDay.ToString("00")}-{Common.MonthNames[searchTargetData.BirthMonth]}`" - + searchTargetData.TimeZone == null ? "" : $" - `{ searchTargetData.TimeZone}`"); + string result = Common.FormatName(searchTarget, false); + result += ": "; + result += $"`{searchTargetData.BirthDay:00}-{Common.MonthNames[searchTargetData.BirthMonth]}`"; + result += searchTargetData.TimeZone == null ? "" : $" - `{searchTargetData.TimeZone}`"; + + await reqChannel.SendMessageAsync(result); } } }