mq

Privateunrated

Content

27 lines
{=(comment):This is where all the possible operations are.}

{=(operations):➕~➖}

{=(comment):This selects a random operation from the list and stores it to be used later.}

{=(randOperation):{rand:{operations}}}

{=(comment):These are the possible numbers that can be in the math problem.}

{=(possibleNumbers1):6-120}
{=(possibleNumbers2):6-120}

{=(comment):This variable stores the problem by combining the other variables.}

{=(problem):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}

{=(comment):This DMs the person who used the command the answer to it in a spoiler format.}

{if({randOperation}==➕):{=(newProblem):{replace(➕,+):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}

{if({randOperation}==✖️):{=(newProblem):{replace(✖️,*):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}


{=(comment):This sends the problem in the channel it was used in.}

{c:echo {problem}}{override}
Raw JSON
{
  "id": 1448017,
  "created_at": "2022-06-17T15:34:40.000Z",
  "tag_name": "mq",
  "nsfw": false,
  "owner_id": "883735210401886239",
  "uses": 7,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "885440744779829258",
  "sharer": "883735210401886239",
  "content": "{=(comment):This is where all the possible operations are.}\n\n{=(operations):➕~➖}\n\n{=(comment):This selects a random operation from the list and stores it to be used later.}\n\n{=(randOperation):{rand:{operations}}}\n\n{=(comment):These are the possible numbers that can be in the math problem.}\n\n{=(possibleNumbers1):6-120}\n{=(possibleNumbers2):6-120}\n\n{=(comment):This variable stores the problem by combining the other variables.}\n\n{=(problem):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}\n\n{=(comment):This DMs the person who used the command the answer to it in a spoiler format.}\n\n{if({randOperation}==➕):{=(newProblem):{replace(➕,+):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}\n\n{if({randOperation}==✖️):{=(newProblem):{replace(✖️,*):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}\n\n\n{=(comment):This sends the problem in the channel it was used in.}\n\n{c:echo {problem}}{override}",
  "embed": "{}",
  "last_fetched": "2026-10-20T18:51:44.833Z"
}