dcalc
Privateunrated
Content
45 lines{=(cookie):10}
{=(bread):100}
{=(pill):150}
{=(horseshoe):500}
{=(legendary):80000}
{=(largs):{lower:{args}}}
{=(eq):{replace(cookie,*{cookie}):{replace(pill,*{pill}):{replace(bread,*{bread}):{replace(shoe,*{horseshoe}):{replace(horseshoe,*{horseshoe}):{replace(legendary,*{legendary}):{largs}}}}}}}}
{=(spaced):{replace(, ):{join():{args}}}}
{=(length):{index(&$):{spaced} &$}}
{=(c-eq):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({eq})}}}}}}}
{=(isNum):{if({m:({eq})*0}==0.0):true|false}}
{=(isArgs):{if(!={1}):true|false}}
{=(kw):cookie bread pill horseshoe}
{=(err.invalid):You provided a keyword (or character) that's invalid or not allowed.
**Allowed keywords**
`{join(`, `):{kw}}`}
{=(err.noArgs):Specify items and their amount to calculate with each other.
**Example**
`!dcalc 2 pill+1 bread -cookie`}
{=(output):{if({isArgs}==false):err.noArgs|{if({isNum}==false):err.invalid|c-eq}}}
{=(debug):__Debug:__
eq: `{eq}`
length: `{length}`
**Checks**
isArgs: `{isArgs}`
c-eq: `{c-eq}`
isNum: `{isNum}`
output:
{{output}}
}
{debug}Raw JSON
{
"id": 880065,
"created_at": "2021-06-10T04:18:16.000Z",
"tag_name": "dcalc",
"nsfw": false,
"owner_id": "697681586312839208",
"uses": 31,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "693925357580976221",
"sharer": "729478188664619058",
"content": "{=(cookie):10}\n{=(bread):100}\n{=(pill):150}\n{=(horseshoe):500}\n{=(legendary):80000}\n\n{=(largs):{lower:{args}}}\n\n{=(eq):{replace(cookie,*{cookie}):{replace(pill,*{pill}):{replace(bread,*{bread}):{replace(shoe,*{horseshoe}):{replace(horseshoe,*{horseshoe}):{replace(legendary,*{legendary}):{largs}}}}}}}}\n{=(spaced):{replace(, ):{join():{args}}}}\n{=(length):{index(&$):{spaced} &$}}\n\n{=(c-eq):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{m:trunc({eq})}}}}}}}\n\n{=(isNum):{if({m:({eq})*0}==0.0):true|false}}\n\n{=(isArgs):{if(!={1}):true|false}}\n\n{=(kw):cookie bread pill horseshoe}\n\n{=(err.invalid):You provided a keyword (or character) that's invalid or not allowed.\n\n**Allowed keywords**\n`{join(`, `):{kw}}`}\n{=(err.noArgs):Specify items and their amount to calculate with each other.\n**Example**\n`!dcalc 2 pill+1 bread -cookie`}\n\n{=(output):{if({isArgs}==false):err.noArgs|{if({isNum}==false):err.invalid|c-eq}}}\n\n{=(debug):__Debug:__\neq: `{eq}`\nlength: `{length}`\n\n**Checks**\nisArgs: `{isArgs}`\n\nc-eq: `{c-eq}`\nisNum: `{isNum}`\n\noutput:\n{{output}}\n}\n\n{debug}",
"embed": "{}",
"last_fetched": "2026-10-20T16:44:39.306Z"
}