calc
Clalculator tag
Privateunrated
Content
22 lines{=(largs):{lower:{args}}}
{=(equation):{replace(Z,):{replace(.0Z,):{m:{replace(π,pi):{replace(sqrt,^(1/2)):{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace( ,):{largs}}}}}}}}}Z}}}
{=(equation):{replace(<o error>,Error. Invalid input.):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{equation(1):.}}{if({equation(2+):.}!=):.{equation(2+):.}}}}}}}}
{=(COMMENT):Title and thumbnail of the embed.}
{=(title):Calculator}
{=(thumbnail):{replace(1200px,250px):https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/GNOME_Calculator_icon_2018.svg/1200px-GNOME_Calculator_icon_2018.svg.png}}
{=(COMMENT):Conditional input to display. Returns a space when no argument is provided, just so it doesn't display two "`" characters.}
{=(input):{if({1}==):None.|{replace( ,):{largs}}}}
{=(COMMENT):Conditional output to display.}
{=(error):You need to specify an equation to calculate.}
{=(output):{if({1}==):{error}|{equation}}}
{=(COMMENT):Conditional embed's side color. Red if no argument or invalid input; otherwise gray/transparent.}
{=(clr.red):F80E0E}
{=(clr.gray):00ff77}
{=(em.color):{if({1}==):{clr.red}|{if({in(Error. Invalid input.):{equation}}==true):{clr.red}|{clr.gray}}}}
{embed(color):#{em.color}}Embed
1 line{"color": 5198940, "title": "Carlculator <:carlhowdy:610289187274358784>", "fields": [{"name": "Question", "value": "`{input}`", "inline": false}, {"name": "Solution", "value": "`{output}`", "inline": false}], "footer": {"text": "By retired unmoo#2647"}, "thumbnail": {"url": "{thumbnail}"}}Raw JSON
{
"id": 641011,
"created_at": "2021-02-28T11:28:34.000Z",
"tag_name": "calc",
"nsfw": false,
"owner_id": "749917031502970910",
"uses": 127,
"description": "Clalculator tag",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "749664315807760525",
"sharer": "749917031502970910",
"content": "{=(largs):{lower:{args}}}\n\n\n{=(equation):{replace(Z,):{replace(.0Z,):{m:{replace(π,pi):{replace(sqrt,^(1/2)):{replace(÷,/):{replace(x,*):{replace(m,e6):{replace(k,e3):{replace( ,):{largs}}}}}}}}}Z}}}\n{=(equation):{replace(<o error>,Error. Invalid input.):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{equation(1):.}}{if({equation(2+):.}!=):.{equation(2+):.}}}}}}}}\n\n{=(COMMENT):Title and thumbnail of the embed.}\n{=(title):Calculator}\n{=(thumbnail):{replace(1200px,250px):https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/GNOME_Calculator_icon_2018.svg/1200px-GNOME_Calculator_icon_2018.svg.png}}\n\n{=(COMMENT):Conditional input to display. Returns a space when no argument is provided, just so it doesn't display two \"`\" characters.}\n{=(input):{if({1}==):None.|{replace( ,):{largs}}}}\n\n{=(COMMENT):Conditional output to display.}\n{=(error):You need to specify an equation to calculate.}\n{=(output):{if({1}==):{error}|{equation}}}\n\n{=(COMMENT):Conditional embed's side color. Red if no argument or invalid input; otherwise gray/transparent.}\n{=(clr.red):F80E0E}\n{=(clr.gray):00ff77}\n{=(em.color):{if({1}==):{clr.red}|{if({in(Error. Invalid input.):{equation}}==true):{clr.red}|{clr.gray}}}}\n{embed(color):#{em.color}}",
"embed": "{\"color\": 5198940, \"title\": \"Carlculator <:carlhowdy:610289187274358784>\", \"fields\": [{\"name\": \"Question\", \"value\": \"`{input}`\", \"inline\": false}, {\"name\": \"Solution\", \"value\": \"`{output}`\", \"inline\": false}], \"footer\": {\"text\": \"By retired unmoo#2647\"}, \"thumbnail\": {\"url\": \"{thumbnail}\"}}",
"last_fetched": "2026-10-21T00:30:07.771Z"
}