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()
{
Register("%bot.time%",
static ()
=> TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString());
static () => DateTime.Now.ToShortTimeString());
Register("%bot.date%",
static ()
=> TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString());
static () => DateTime.Now.ToShortDateString());
}
private void WithClient()