Fix bb.when output

(I don't get how this fixed it)
This commit is contained in:
Noi 2020-05-22 17:00:34 -07:00
parent 7500590113
commit 6f4222497e
2 changed files with 7 additions and 4 deletions

View file

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>2.0.0</Version> <Version>2.0.1</Version>
<PackageId>BirthdayBot</PackageId> <PackageId>BirthdayBot</PackageId>
<Authors>NoiTheCat</Authors> <Authors>NoiTheCat</Authors>
<Product>BirthdayBot</Product> <Product>BirthdayBot</Product>

View file

@ -253,9 +253,12 @@ namespace BirthdayBot.UserInterface
return; return;
} }
await reqChannel.SendMessageAsync(Common.FormatName(searchTarget, false) + ": " string result = Common.FormatName(searchTarget, false);
+ $"`{ searchTargetData.BirthDay.ToString("00")}-{Common.MonthNames[searchTargetData.BirthMonth]}`" result += ": ";
+ searchTargetData.TimeZone == null ? "" : $" - `{ searchTargetData.TimeZone}`"); result += $"`{searchTargetData.BirthDay:00}-{Common.MonthNames[searchTargetData.BirthMonth]}`";
result += searchTargetData.TimeZone == null ? "" : $" - `{searchTargetData.TimeZone}`";
await reqChannel.SendMessageAsync(result);
} }
} }
} }