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>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<PackageId>BirthdayBot</PackageId>
<Authors>NoiTheCat</Authors>
<Product>BirthdayBot</Product>

View file

@ -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);
}
}
}