changeweight

Accepts a weight input in KG or LBS, and spits out an embed with a conversion to the opposite weight unit.

Private

Content

5 lines
{=(ua):{upper:{args}}}
{=(kgtolbs):{calc:round(({ua(1):KG}*2.2046226218)*10)/10} Pounds}
{=(lbstokg):{calc:round(({ua(1):LBS}/2.2046226218)*10)/10} Kilograms}
{=(error):Please include either a `KG` or an `LBS` as a weight unit of measure.}
{=(result):{{if({in(KG):{ua}}==true):kgtolbs|{if({in(LBS):{ua}}==true):lbstokg|error}}}}

Embed

1 line
{"color": 5198940, "title": "{result}", "author": {"name": "Result:"}}
Raw JSON
{
  "id": 2137892,
  "created_at": "2024-10-23T06:48:35.000Z",
  "tag_name": "changeweight",
  "nsfw": false,
  "owner_id": "176626586609647617",
  "uses": 2,
  "description": "Accepts a weight input in KG or LBS, and spits out an embed with a conversion to the opposite weight unit.",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "1053042753988210718",
  "sharer": "176626586609647617",
  "content": "{=(ua):{upper:{args}}}\n{=(kgtolbs):{calc:round(({ua(1):KG}*2.2046226218)*10)/10} Pounds}\n{=(lbstokg):{calc:round(({ua(1):LBS}/2.2046226218)*10)/10} Kilograms}\n{=(error):Please include either a `KG` or an `LBS` as a weight unit of measure.}\n{=(result):{{if({in(KG):{ua}}==true):kgtolbs|{if({in(LBS):{ua}}==true):lbstokg|error}}}}",
  "embed": "{\"color\": 5198940, \"title\": \"{result}\", \"author\": {\"name\": \"Result:\"}}",
  "last_fetched": "2026-10-20T19:45:45.906Z"
}