Skip to content

Rewrite the /convert command #209

@DaRealTurtyWurty

Description

@DaRealTurtyWurty

/convert is a command that can be used to convert between different units of measurement such as cm -> inches, mph -> m/s, bytes -> terrabytes and etc. The problem is that currently some of the formulas appear to be incorrect and the way that it formats some of the results appears to be incorrect too.

As for a solution, you really would have to just rewrite the whole thing. If it could possibly be made more dynamic, that would be fantastic, however I'm not sure how easy/hard that'd be and whether its worth the effort.

The current code for the command can be found here:
https://github.com/DaRealTurtyWurty/SuperTurtyBot/blob/main/src/main/java/dev/darealturtywurty/superturtybot/commands/util/ConvertCommand.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersjavaPull requests that update Java code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions