mq
Sharedunrated
Content
30 lines{=(comment):This is where all the possible operations are.}
{=(operations):<:Math_Plus_Sign:831745905761583114>~<:multipy_sign:831751071437160458>}
{=(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-12}
{=(possibleNumbers2):6-12}
{=(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}==<:Math_Plus_Sign:831745905761583114>):{=(newProblem):{replace(<:Math_Plus_Sign:831745905761583114>,+):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}
{if({randOperation}==<:multipy_sign:831751071437160458>):{=(newProblem):{replace(<:multipy_sign:831751071437160458>,*):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}
{dm}
||{m:{newProblem}}||
{=(comment):This sends the problem in the channel it was used in.}
{c:echo {problem}}{override}Raw JSON
{
"id": 737274,
"created_at": "2021-04-08T23:52:24.000Z",
"tag_name": "mq",
"nsfw": false,
"owner_id": "541760449071415316",
"uses": 52,
"description": null,
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "735633050594967622",
"sharer": "541760449071415316",
"content": "{=(comment):This is where all the possible operations are.}\n\n{=(operations):<:Math_Plus_Sign:831745905761583114>~<:multipy_sign:831751071437160458>}\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-12}\n{=(possibleNumbers2):6-12}\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}==<:Math_Plus_Sign:831745905761583114>):{=(newProblem):{replace(<:Math_Plus_Sign:831745905761583114>,+):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}\n\n{if({randOperation}==<:multipy_sign:831751071437160458>):{=(newProblem):{replace(<:multipy_sign:831751071437160458>,*):{range:{possibleNumbers1}} {randOperation} {range:{possibleNumbers2}}}}}\n\n\n{dm}\n||{m:{newProblem}}||\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-20T15:58:48.259Z"
}