Use a chat command
!convert to convert between various units of measurement.
chatCommandUnitConversion.sb (4.5 KB)
Use commands to do unit conversions in chat. Units supported (use the abbreviation in command):
- Celsius (c) ↔ Fahrenheit (f)
- Inches (in) ↔ Centimeters (cm)
- Feet (ft) ↔ Meters (m)
- Miles (mi) ↔ Kilometers (km)
- Fluid Ounces (floz) ↔ Milliliters (ml)
- Pounds (lbs) ↔ Kilograms (km)
!convertand adjust permissions/cooldowns
!convert 5km- will return
5 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