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

[HammerTime] add ability to auto-convert "ago" times #18

Open
Chovin opened this issue Oct 7, 2024 · 2 comments
Open

[HammerTime] add ability to auto-convert "ago" times #18

Chovin opened this issue Oct 7, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@Chovin
Copy link
Owner

Chovin commented Oct 7, 2024

currently it only auto-converts times like "in 5 minutes" and "Saturday at 9pm". It shouldn't be too hard to add the "5 minutes ago" format though.

@Chovin Chovin added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest labels Oct 7, 2024
@Kuzay3t
Copy link

Kuzay3t commented Oct 12, 2024

how do i help with this?

@Chovin
Copy link
Owner Author

Chovin commented Oct 13, 2024

currently the on_message function exits early if the message doesn't have "at" or "in" in the message. You'd need to alter the regex to include "ago" and then test to make sure that it converts strings like "5 minutes ago" correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants