Description
Use a chat command !convert
to convert between various units of measurement.
Import Code
chatCommandUnitConversion.sb (4.5 KB)
Description
Use commands to do unit conversions in chat. Units supported (use the abbreviation in command):
- Temperature
- Celsius (c) ↔ Fahrenheit (f)
- Length
- Inches (in) ↔ Centimeters (cm)
- Feet (ft) ↔ Meters (m)
- Distance
- Miles (mi) ↔ Kilometers (km)
- Volume
- Fluid Ounces (floz) ↔ Milliliters (ml)
- Weight
- Pounds (lbs) ↔ Kilograms (km)
Steps after import and usage
- Enable
!convert
and adjust permissions/cooldowns !convert 5km
- will return5 kilometers is 3.11 miles
- Code should work whether or not there’s a space between the number and unit.
- See description above for list of units and use their abbreviations