converttemp

Privateunrated

Content

6 lines
{=(ua):{upper:{args}}}
{=(ctof):{calc:round(({ua(1):C}*9/5+32)*10)/10} Fahrenheit}
{=(ftoc):{calc:round((({ua(1):F}-32)*5/9)*10)/10} Celsius}
{=(error):Include either a `C` or a `F` as a temperature unit}
{=(result):{{if({in(C):{ua}}==true):ctof|{if({in(F):{ua}}==true):ftoc|error}}}}
{embed(color):{if({in(-):{result}}==true):#75c3ff|#ffbe69}}

Embed

1 line
{"color": 11788357, "title": "{result}", "author": {"name": "Result:", "icon_url": "https://i.imgur.com/XZtqvCB.png"}, "footer": {"text": "Please try to keep bot spam to a minimum and to use #bot-spam whenever possible. For a list of all tags, use ?listtags"}}
Raw JSON
{
  "id": 121986,
  "created_at": "2020-02-19T17:16:34.000Z",
  "tag_name": "converttemp",
  "nsfw": false,
  "owner_id": "105173507041693696",
  "uses": 26,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "510677683676643339",
  "sharer": "298236372140032000",
  "content": "{=(ua):{upper:{args}}}\n{=(ctof):{calc:round(({ua(1):C}*9/5+32)*10)/10} Fahrenheit}\n{=(ftoc):{calc:round((({ua(1):F}-32)*5/9)*10)/10} Celsius}\n{=(error):Include either a `C` or a `F` as a temperature unit}\n{=(result):{{if({in(C):{ua}}==true):ctof|{if({in(F):{ua}}==true):ftoc|error}}}}\n{embed(color):{if({in(-):{result}}==true):#75c3ff|#ffbe69}}",
  "embed": "{\"color\": 11788357, \"title\": \"{result}\", \"author\": {\"name\": \"Result:\", \"icon_url\": \"https://i.imgur.com/XZtqvCB.png\"}, \"footer\": {\"text\": \"Please try to keep bot spam to a minimum and to use #bot-spam whenever possible. For a list of all tags, use ?listtags\"}}",
  "last_fetched": "2026-10-20T20:57:47.754Z"
}