temp

A perfect temperature convertor. K to C, K to F, F to K, etc..

Privateunrated

Content

12 lines
{=(ua):{upper:{args}}}
{=(ctof):{calc:round(({ua(1):C}*9/5+32)*10)/10} Fahrenheit}
{=(ctok):{calc:round({ua(1):C}+273.15)} Kelvin}
{=(ftoc):{calc:round((({ua(1):F}-32)*5/9)*10)/10} Celsius}
{=(ftok):{calc:round((({ua(1):F}-32)*5/9)+273.15)} Kelvin}
{=(ktoc):{calc:round({ua(1):K}-273.15)} Celsius}
{=(ktof):{calc:round(({ua(1):K}*1.8)-459.67)} Fahrenheit}
{=(error):Please include a temperature unit of measure.}
{=(error2):`Use K for Kelvin, C for Celsius or F for Fahrenheit, the letter should be in upper case.`}
{=(result):{{if({in(C):{ua}}==true):ctof|{if({in(F):{ua}}==true):ftoc|{if({in(K):{ua}}==true):ktoc|error}}}}}
{=(result2):{{if({in(C):{ua}}==true):ctok|{if({in(F):{ua}}==true):ftok|{if({in(K):{ua}}==true):ktof|error2}}}}}
{embed(color):{if({in(-):{result}}==false):#ff0000|#80ffff}}

Embed

1 line
{"color": 5198940, "title": "Result:", "description": "{result}"}
Raw JSON
{
  "id": 814610,
  "created_at": "2021-05-09T20:08:19.000Z",
  "tag_name": "temp",
  "nsfw": false,
  "owner_id": "773437107666026526",
  "uses": 12,
  "description": "A perfect temperature convertor. K to C, K to F, F to K, etc..",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "796058140202237963",
  "sharer": "773437107666026526",
  "content": "{=(ua):{upper:{args}}}\n{=(ctof):{calc:round(({ua(1):C}*9/5+32)*10)/10} Fahrenheit}\n{=(ctok):{calc:round({ua(1):C}+273.15)} Kelvin}\n{=(ftoc):{calc:round((({ua(1):F}-32)*5/9)*10)/10} Celsius}\n{=(ftok):{calc:round((({ua(1):F}-32)*5/9)+273.15)} Kelvin}\n{=(ktoc):{calc:round({ua(1):K}-273.15)} Celsius}\n{=(ktof):{calc:round(({ua(1):K}*1.8)-459.67)} Fahrenheit}\n{=(error):Please include a temperature unit of measure.}\n{=(error2):`Use K for Kelvin, C for Celsius or F for Fahrenheit, the letter should be in upper case.`}\n{=(result):{{if({in(C):{ua}}==true):ctof|{if({in(F):{ua}}==true):ftoc|{if({in(K):{ua}}==true):ktoc|error}}}}}\n{=(result2):{{if({in(C):{ua}}==true):ctok|{if({in(F):{ua}}==true):ftok|{if({in(K):{ua}}==true):ktof|error2}}}}}\n{embed(color):{if({in(-):{result}}==false):#ff0000|#80ffff}}",
  "embed": "{\"color\": 5198940, \"title\": \"Result:\", \"description\": \"{result}\"}",
  "last_fetched": "2026-10-21T01:26:44.114Z"
}