quiz
A simple tag for quizzes. `!quiz #` summons the question; `!quiz # a` (a or anything really) summons the answer. Instead of a number you can use `r` for a random question. In the content part of the tag you add questions/answers in this format: {=(q1):How many stars are there in Orion's Belt? A) 2 B) 4 C) 3 D) 6} {=(a1):π¨ 3} {=(q2):Question 2.} {=(a2):Answer 2.} and update `{=(last):2}` to your total number of questions, so the random mode works. This tag uses Raffael's method to check if an {arg} is a number. He also showed me how to make {react:} conditional and the proper way to call the variables. So basically, he did everything :shrug:
Sharedunrated
Content
15 lines{react: {if({1}=={2}):π¦ π§ π¨ π©|}}
{=(last):3}
{=(q1):How many stars are there in Orion's Belt?
A) 2
B) 4
C) 3
D) 6}
{=(a1):π¨ 3}
{=(q2):q2}
{=(a2):a2}
{=(q3):q3}
{=(a3):a3}Embed
1 line{"color": 16750938, "description": "{=(n):{if({1}==r):{range:1-{last}}|{1}}}\n\n{=(raw):{n}}\n{=(test1):{m:trunc({raw}/1)}}\n{=(test2):{m:{raw}/1}}\n{=(numtest):{if({raw}=={test1}):true|{if({raw}=={test2}):true|false}}}\n\n{=(question):\n{if({1}=={2}):***Question {n}***\n\n{q{n}}|}}\n\n{=(answer):\n{if({1}=={2}):|***Answer {n}***\n\n{a{n}}}}\n\n{all({numtest}==true|{n}>=1|{n}<={last}):{question}{answer}|You forgot the number!}"}Raw JSON
{
"id": 52547,
"created_at": "2019-06-10T22:55:47.000Z",
"tag_name": "quiz",
"nsfw": false,
"owner_id": "398176590556561438",
"uses": 202,
"description": "A simple tag for quizzes. `!quiz #` summons the question; `!quiz # a` (a or anything really) summons the answer. Instead of a number you can use `r` for a random question.\n\nIn the content part of the tag you add questions/answers in this format:\n\n{=(q1):How many stars are there in Orion's Belt?\nA) 2\nB) 4\nC) 3\nD) 6}\n{=(a1):π¨ 3}\n\n{=(q2):Question 2.}\n{=(a2):Answer 2.}\n\nand update `{=(last):2}` to your total number of questions, so the random mode works.\n\nThis tag uses Raffael's method to check if an {arg} is a number. He also showed me how to make {react:} conditional and the proper way to call the variables. So basically, he did everything :shrug:",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "555148243236028417",
"sharer": "398176590556561438",
"content": "{react: {if({1}=={2}):π¦ π§ π¨ π©|}}\n{=(last):3}\n\n{=(q1):How many stars are there in Orion's Belt?\nA) 2\nB) 4\nC) 3\nD) 6}\n{=(a1):π¨ 3}\n\n{=(q2):q2}\n{=(a2):a2}\n\n{=(q3):q3}\n{=(a3):a3}",
"embed": "{\"color\": 16750938, \"description\": \"{=(n):{if({1}==r):{range:1-{last}}|{1}}}\\n\\n{=(raw):{n}}\\n{=(test1):{m:trunc({raw}/1)}}\\n{=(test2):{m:{raw}/1}}\\n{=(numtest):{if({raw}=={test1}):true|{if({raw}=={test2}):true|false}}}\\n\\n{=(question):\\n{if({1}=={2}):***Question {n}***\\n\\n{q{n}}|}}\\n\\n{=(answer):\\n{if({1}=={2}):|***Answer {n}***\\n\\n{a{n}}}}\\n\\n{all({numtest}==true|{n}>=1|{n}<={last}):{question}{answer}|You forgot the number!}\"}",
"last_fetched": "2026-10-20T20:28:42.081Z"
}