Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bot to use dynamic timestamps #56

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Fox-Islam
Copy link
Collaborator

Discord recently introduced dynamic in-line timestamps which appear different to users based on their local timezone

  • Updated study session messages to use dynamic timezones to make scheduled event times clearer

This also made the previously-introduced !timezone command obsolete

  • Replaced !timezone command with !time command which can be used by members to generate dynamic timestamps
  • Replaced !help timezone command with !help time command for additional information
  • Removed 'luxon' package, which was added only for the !timezone command

@Fox-Islam Fox-Islam force-pushed the enhancement/update-to-use-dynamic-timestamps branch from 247e59d to e5ec639 Compare July 15, 2021 13:08
src/utils/date.js Outdated Show resolved Hide resolved
src/utils/date.js Outdated Show resolved Hide resolved
src/scripts/utility-commands/time-and-date.js Outdated Show resolved Hide resolved
src/scripts/utility-commands/time-and-date.js Outdated Show resolved Hide resolved
src/scripts/utility-commands/time-and-date.js Outdated Show resolved Hide resolved
src/scripts/utility-commands/time-and-date.js Show resolved Hide resolved
Discord recently introduced dynamic in-line timestamps
https://discord.com/developers/docs/reference#message-formatting-timestamp-styles
which appear different to users based on their local timezone

Updated the study session messages to use dynamic timezones to make
scheduled event times clearer

This also made the previously-introduced `!timezone` command obsolete
- Replaced `!timezone` command with `!time` command which can be used
by members to generate dynamic timestamps
  - Replaced `!help timezone` command with `!help time` command
  for additional information
- Removed 'luxon' package, which was added only for the `!timezone` command
@Fox-Islam Fox-Islam force-pushed the enhancement/update-to-use-dynamic-timestamps branch from e5ec639 to dc2c263 Compare July 15, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants