Helpful Tips
Date Parser
Dates can be parsed a few different ways.
The bot will first try to parse dates with JavaScript's
Date.parse()
method. The link to Date.parse() will show some examples, but they tend to be very long and are unreasonable to type out by hand.
If the above test fails, then the bot will try parsing it in the format <day> <time> <timezone>.
For the day: Either spelled out (July 1), mm/dd (7/1), or a day of the week.
time: 3 pm, 10:30 am, or 21/21:00 without am/pm if using 24 hour format.
timezone: Must be either pdt, pt, mdt, cdt, mx, edt, et, utc, cest, jst, or aest. Daylight savings time, like pdt and pst are converted automatically.
day parameter, a day of the week is one of the following: "today", "tomorrow",
"sunday", "monday", "tuesday", "wednesday", "thursday", "friday", or "saturday". If using mm/dd, reversing
it as dd/mm is unsupported and the date may not parse correctly.
If you omit the day, like in 11am edt, and the current time is past that,
like if it is 3:00 PM EDT, then the parser will parse it as 11:00 AM the next day. However, for some
commands, like !create, the day portion like "today" or "11/1" is required.
Some notes that can make the date clearer for other server members but are ultimately ignored by the parser:
The following are some examples that will all resolve to July 1 at 12:00 PM Pacific Time:
day and time.today in place of the day argument, and that will parse the day as the current day.
July 1, 2023 12:00 pm pdtJuly 1 at 12pm pst7/1/23 at 3pm edt7/1 15:00 edt7/1 21 cest
now, and that will parse the date as the current time. For example, !cups now is helpful to get the mp cups that are currently active.
