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

Freedom Unit Command #31

Open
hellos3b opened this issue Jul 7, 2020 · 2 comments
Open

Freedom Unit Command #31

hellos3b opened this issue Jul 7, 2020 · 2 comments
Assignees
Labels
Proposal Suggestion for a new feature

Comments

@hellos3b
Copy link
Owner

hellos3b commented Jul 7, 2020

Either !fu or !freedom-units

Should automatically detect and convert a few common units

Examples
!fu 30 C -> "86° F"
!fu 100m -> "109 yards"
!fu 5k -> "3.1mi"

I think you can just use some sort of string.toLowerCase().contains("m") to guess the initial unit

And then either create your own functions or import and use https://www.npmjs.com/package/convert-units

@hellos3b hellos3b added Proposal Suggestion for a new feature feature labels Jul 7, 2020
@hellos3b
Copy link
Owner Author

hellos3b commented Jul 7, 2020

Other possible converions:

!fu 10cm -> inches
!fu 48g -> oz/ lbs
!fu 100kg -> lbs

@kdliu86
Copy link
Contributor

kdliu86 commented Jul 7, 2020

dibs

@hellos3b hellos3b changed the title Freedom Unit Command [fu] Proposal for "Freedom Unit" Command Jun 16, 2021
@hellos3b hellos3b changed the title [fu] Proposal for "Freedom Unit" Command proposal: Proposal for "Freedom Unit" Command Jun 16, 2021
@hellos3b hellos3b changed the title proposal: Proposal for "Freedom Unit" Command proposal: Freedom Unit Command Jun 16, 2021
@hellos3b hellos3b changed the title proposal: Freedom Unit Command Freedom Unit Command Jun 16, 2021
@hellos3b hellos3b removed the feature label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Proposal Suggestion for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants