Fixed bot.time and bot.date showing current timestamp time, which didn't make sense

This commit is contained in:
Toastie 2025-03-16 14:36:56 +13:00
parent d77fa7a115
commit c8ea928de7
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7

View file

@ -11,12 +11,10 @@ public sealed partial class ReplacementPatternStore
private void WithDefault() private void WithDefault()
{ {
Register("%bot.time%", Register("%bot.time%",
static () static () => DateTime.Now.ToShortTimeString());
=> TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString());
Register("%bot.date%", Register("%bot.date%",
static () static () => DateTime.Now.ToShortDateString());
=> TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString());
} }
private void WithClient() private void WithClient()