/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
/convertis a command that can be used to convert between different units of measurement such ascm -> inches,mph -> m/s,bytes -> terrabytesand 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