Fixed bot.time and bot.date showing current timestamp time, which didn't make sense
This commit is contained in:
parent
d77fa7a115
commit
c8ea928de7
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue