jakethedev / beatbattlebot

Util bot for handling beat battle submissions, sessions, and maybe more
Other
2 stars 1 forks source link

Dates overhaul: use unix stamp discord trick, !getballot and !subs output should include vote deadline #92

Open jakethedev opened 2 years ago

jakethedev commented 2 years ago

The ballots don't even tell you when they're due. This is a great reason to build up the util calls for turning a dayjs object into a discord timestamp code, so for the sake of prioritizing, this requires #96 to be done first

Notable places to ADD dates include !getballot, !subs

TODO

Details on Unix stamp trick

Instead of juggling timezones, using this unix trick with the day.js relative (2 days from now) output would be sick as heck used in tandem. General chart of codes, the number is unix time in seconds:

<t:1624855717>      short date time:    June 27, 2021 9:48 PM
<t:1624855717:f>    short date time     June 27, 2021 9:48 PM
<t:1624855717:F>    long date time:     Sunday, June 27, 2021 9:48 PM
<t:1624855717:d>    short date:         06/27/2021
<t:1624855717:D>    long date:      June 27, 2021
<t:1624855717:t>    short time:         9:48 PM
<t:1624855717:T>    long time:      9:48:37 PM
<t:1624855717:R>    relative time:      2 days ago

Cheers to "No Text to Speech" on youtube