calcc

Privateunrated

Content

6 lines
{=(COMMENT):#### A basic calculator tag, easily customizable. ####}
{=(url):Put whatever URL you want in here, it'll display as the title of the tag's output.}
{=(input):{args(1+)}:+,-,*,/}
{=(conversion):{if({in(k):{args(1+)}}==true):{math:trunc({replace(k,e3):{args(1+)}})}|{if({in(K):{args(1+)}}==true):{math:trunc({replace(K,e3):{args(1+)}})}|{if({in(m):{args(1+)}}==true):{math:trunc({replace(m, ):{args(1+)}}*1000000)}|{if({in(M):{args(1+)}}==true):{math:trunc({replace(M, ):{args(1+)}}*1000000)}|{args(1+)}}}}}}
{=(answer):{math:abs({conversion})}}
{c:cembed {channel(id)} {"url":"{url}","title":"Answer","description":"= {if({args}==):Stupidity, that's what it equals to when you use the tag without any arguments.|{m:{answer}}}","thumbnail":{"url":"{server(icon)}"},"color":2802150,"footer":{"icon_url":"{user(icon)}","text":"Bots are OP!"}}}
Raw JSON
{
  "id": 740570,
  "created_at": "2021-04-10T13:06:16.000Z",
  "tag_name": "calcc",
  "nsfw": false,
  "owner_id": "507390970573094923",
  "uses": 3,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "744613408053133353",
  "sharer": "507390970573094923",
  "content": "{=(COMMENT):#### A basic calculator tag, easily customizable. ####}\n{=(url):Put whatever URL you want in here, it'll display as the title of the tag's output.}\n{=(input):{args(1+)}:+,-,*,/}\n{=(conversion):{if({in(k):{args(1+)}}==true):{math:trunc({replace(k,e3):{args(1+)}})}|{if({in(K):{args(1+)}}==true):{math:trunc({replace(K,e3):{args(1+)}})}|{if({in(m):{args(1+)}}==true):{math:trunc({replace(m, ):{args(1+)}}*1000000)}|{if({in(M):{args(1+)}}==true):{math:trunc({replace(M, ):{args(1+)}}*1000000)}|{args(1+)}}}}}}\n{=(answer):{math:abs({conversion})}}\n{c:cembed {channel(id)} {\"url\":\"{url}\",\"title\":\"Answer\",\"description\":\"= {if({args}==):Stupidity, that's what it equals to when you use the tag without any arguments.|{m:{answer}}}\",\"thumbnail\":{\"url\":\"{server(icon)}\"},\"color\":2802150,\"footer\":{\"icon_url\":\"{user(icon)}\",\"text\":\"Bots are OP!\"}}}",
  "embed": "{}",
  "last_fetched": "2026-10-21T01:03:35.977Z"
}