add aliases

This commit is contained in:
iou1name 2022-05-18 11:14:58 -04:00
parent a6b5aebedf
commit 54011632fc

View File

@ -34,7 +34,7 @@ def k_to_c(temp):
return temp - 273.15
@commands('temp')
@commands('temp', 'temperature')
@example('.temp 100F', '37.78°C = 100.00°F = 310.93K')
@example('.temp 100C', '100.00°C = 212.00°F = 373.15K')
@example('.temp 100K', '-173.15°C = -279.67°F = 100.00K')
@ -61,7 +61,7 @@ def temperature(bot, trigger):
bot.reply("{:.2f}°C = {:.2f}°F = {:.2f}K".format(celsius,fahrenheit,kelvin))
@commands('length', 'distance')
@commands('dist', 'distance', 'length')
@example('.distance 3m', '3.00m = 9 feet, 10.11 inches')
@example('.distance 3km', '3.00km = 1.86 miles')
@example('.distance 3 miles', '4.83km = 3.00 miles')