calc

Private

Content

19 lines
{=():}
{=(units):{math:({replace(k,e3):{replace(m,e6):{replace(b,e9):{replace(%,e-2):{lower:{args}}}}}})}}
{=(separated):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({units})}}}}}}}
{=(rounded):{math:round({units})}.0}
{=(output1):Input: `{args}`
Calculated: `{units}`}
{=(output2):Input: `{args}`
Calculated: `{separated}`}
{=(errormsg1):Argument is empty, please include a value to calculate with.}
{=(errormsg2):This does not appear to be a valid argument to calculate with.}
{=(usage):Usage: `[p]calc <value>`}
{=(link1):https://via.placeholder.com/720x90/000000/FFFFFF/?text={units}}
{=(link2):https://via.placeholder.com/720x90/000000/FFFFFF/?text={separated}}
{=(display):{{if({in(error):{separated}}==true):usage|{if({units}=={rounded}):output2|output1}}}}
{=(link):{{all({in(error):{separated}}==false|{units}=={rounded}):link2|{all({in(error):{separated}}==false|{units}!={rounded}):link1}}}}
{{if({args(1)}==):errormsg1|{if({in(error):{separated}}==true):errormsg2}}}
{{if({args(1)}==):reactu: <:greentick:318044721807360010>|{if({in(error):{separated}}==true):reactu: <:redtick:318044813444251649>}}}
{embed(color):#2F3338}
{embed(timestamp):now}

Embed

1 line
{"color": 5198940, "image": {"url": "{link}"}, "title": "{display}", "author": {"name": "Calculator"}, "footer": {"text": "{server}", "icon_url": "https://cdn.discordapp.com/icons/678164358378946580/a_1406df681b08a0dbd82304976397b08e.gif?size=1024"}}
Raw JSON
{
  "id": 602633,
  "created_at": "2021-02-12T17:58:03.000Z",
  "tag_name": "calc",
  "nsfw": false,
  "owner_id": "676103178323886085",
  "uses": 15390,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "678164358378946580",
  "sharer": "676103178323886085",
  "content": "{=():}\n{=(units):{math:({replace(k,e3):{replace(m,e6):{replace(b,e9):{replace(%,e-2):{lower:{args}}}}}})}}\n{=(separated):{replace(th,):{replace(st,):{replace(nd,):{replace(rd,):{ord:{math:round({units})}}}}}}}\n{=(rounded):{math:round({units})}.0}\n{=(output1):Input: `{args}`\nCalculated: `{units}`}\n{=(output2):Input: `{args}`\nCalculated: `{separated}`}\n{=(errormsg1):Argument is empty, please include a value to calculate with.}\n{=(errormsg2):This does not appear to be a valid argument to calculate with.}\n{=(usage):Usage: `[p]calc <value>`}\n{=(link1):https://via.placeholder.com/720x90/000000/FFFFFF/?text={units}}\n{=(link2):https://via.placeholder.com/720x90/000000/FFFFFF/?text={separated}}\n{=(display):{{if({in(error):{separated}}==true):usage|{if({units}=={rounded}):output2|output1}}}}\n{=(link):{{all({in(error):{separated}}==false|{units}=={rounded}):link2|{all({in(error):{separated}}==false|{units}!={rounded}):link1}}}}\n{{if({args(1)}==):errormsg1|{if({in(error):{separated}}==true):errormsg2}}}\n{{if({args(1)}==):reactu: <:greentick:318044721807360010>|{if({in(error):{separated}}==true):reactu: <:redtick:318044813444251649>}}}\n{embed(color):#2F3338}\n{embed(timestamp):now}",
  "embed": "{\"color\": 5198940, \"image\": {\"url\": \"{link}\"}, \"title\": \"{display}\", \"author\": {\"name\": \"Calculator\"}, \"footer\": {\"text\": \"{server}\", \"icon_url\": \"https://cdn.discordapp.com/icons/678164358378946580/a_1406df681b08a0dbd82304976397b08e.gif?size=1024\"}}",
  "last_fetched": "2026-10-21T00:15:32.254Z"
}