maketest

Privateunrated

Content

73 lines
{=(COMMENT):Quick setup to adapt the command to your server's settings. (Prefix and command name)}
{=(prefix):!}
{=(tag.Name):maketest}

{=(COMMENT):The embed's side color. I set it to the user highest color by default. Change it as per your need. Make sure to include # before the hex code if you do decide to include one.}
{embed(color):{user(color)}}

{=(COMMENT):------Initialization------}
{=(COMMENT):Returns the current arguments length and checks if it equal to 1 or 2.}
{=(length):{index(&$):{args} &$}}
{=(COMMENT):Checks if the current arguments length is 1 or 2.}
{=(check.Length1):{if({length}==1):true|false}}
{=(check.Length2):{if({length}==2):true|false}}
{=(COMMENT):Checks if there is an "@" character in both arguments.}
{=(check.At):{and({in(@):{1}}==true|{in(@):{2}}==true):true|false}}

{=(COMMENT):Returns true if the user mentioned one person, if the user didn't mention themself, and if the argument is actually a mention (contains the @ character).}
{=(check.One):{all({check.Length1}==true|{in({user(id)}):{1}}==false|{in(@):{1}}==true):true|false}}
{=(COMMENT):Returns true if the user mentioned two people, if the user didn't mention the same person twice, and if the arguments actually contain mentions (contains the @ character for each).}
{=(check.Two):{all({check.Length2}==true|{1}!={2}|{check.At}==true):true|false}}

{=(COMMENT):------Seed and Range Management------}
{=(COMMENT):Sets the seed's content to the two first arguments/mentions. Reminder: Seeds allow range and random blocks to always return the same content when the given seed is the same.}
{=(seed1):{user(id)} {1}}
{=(seed2):{1} {2}}
{=(do.Seed):{if({check.One}==true):{seed1}|{if({check.Two}==true):{seed2}}}}
{=(COMMENT):Basic setup of the seeded range block.}
{=(number):{range({do.Seed}):1-100}}
{=(number1):{range({do.Seed}):1-100}}

{=(COMMENT):------Outputs------}
{=(COMMENT):Carl-bot Emojis to display depending on the value of "number".}
{=(emojis):<:cbotneutral_face:676420694787096587> <:cbotface:676420695508647946> <:cbotgrinning:676420694694821899> <:cbotweary:676420694820651018> <:cbothearteyes:676420694715924500>}
{=(emoji):{if({number}<=19):{emojis(1)}|{if({number}<=39):{emojis(2)}|{if({number}<=59):{emojis(3)}|{if({number}<=79):{emojis(4)}|{if({number}<=100):{emojis(5)}}}}}}}

{=(COMMENT):Message to display when the user only mentioned one person.}
{=(output.One):Making sandwiches with 
{user(mention)} and {1}...

Sandwiches quality: {user(mention)}**`{number}%`** {emoji}}
{1} Sandwiches quality: **`{number1}%`** {emoji}

{=(COMMENT):Message to display when the user mentioned two people.}
{=(output.Two): Making sandwiches with 
**{1} and {2}**

{1} Sandwiches quality: **`{number}%`**{emoji}}

{=(COMMENT):Message to display when the user didn't mention anyone, showing them instructions on how to use the command properly.}
{=(error):Please mention at least one person to make **sandwiches with**
You can either mention only one person so it will make sandwiches with the user that your mention, or mention two other people to see their sandwiches quality
Usage: `{prefix}{tag.Name} @someone (optional @someone else)`}

{=(COMMENT):Message to display when the user *only* mentioned themselves or where they mentioned themselves *and* themselves.}
{=(yourself):Why would you make sandwiches yourself? Get some friends to make a sandwiches.}
{=(COMMENT):Message to display when the user mentioned the two same people.}
{=(same):They are the same person... They always have the same souls. You think making sandwiches can use your own shadow?. c:}

{=(COMMENT):Conditionally call the proper output according to the situation.}
{=(output):{if({check.One}==true):{output.One}|{if({check.Two}==true):{output.Two}|{all({check.Length1}==true|{in({user(id)}):{1}}==true):{yourself}|{all({check.Length2}==true|{1}=={2}|{in({user(id)}):{1}}==true):{yourself}|{all({check.Length2}==true|{1}=={2}):{same}|{error}}}}}}}

{=(COMMENT):Debug Outputs, only to test out mistakes and potential errors. To call when debugging.}
{=(output.Debug):__Debug:__
Current Args Length: **{length}**
Length check 1: **{check.Length1}**
Length check 2: **{check.Length2}**
Checks @@: **{check.At}**
Checks len1 && @: **{check.One}**
Checks len2 && @: **{check.Two}**
Seed 1: **{seed1}**
Seed 2: **{seed2}**
Seed to return: **{do.Seed}**
Actual range: **{number}**}

Embed

1 line
{"color": 5198940, "title": "Makes sandwichs", "thumbnail": {"url": "https://cdn.discordapp.com/attachments/683274879037997074/709335228115582976/mae-mu-IZ0LRt1khgM-unsplash.jpg"}, "description": "{output}"}
Raw JSON
{
  "id": 178445,
  "created_at": "2022-04-26T10:36:04.479Z",
  "tag_name": "maketest",
  "nsfw": false,
  "owner_id": "670913482178166806",
  "uses": 82,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "705627769245270158",
  "sharer": "670913482178166806",
  "content": "{=(COMMENT):Quick setup to adapt the command to your server's settings. (Prefix and command name)}\n{=(prefix):!}\n{=(tag.Name):maketest}\n\n{=(COMMENT):The embed's side color. I set it to the user highest color by default. Change it as per your need. Make sure to include # before the hex code if you do decide to include one.}\n{embed(color):{user(color)}}\n\n{=(COMMENT):------Initialization------}\n{=(COMMENT):Returns the current arguments length and checks if it equal to 1 or 2.}\n{=(length):{index(&$):{args} &$}}\n{=(COMMENT):Checks if the current arguments length is 1 or 2.}\n{=(check.Length1):{if({length}==1):true|false}}\n{=(check.Length2):{if({length}==2):true|false}}\n{=(COMMENT):Checks if there is an \"@\" character in both arguments.}\n{=(check.At):{and({in(@):{1}}==true|{in(@):{2}}==true):true|false}}\n\n{=(COMMENT):Returns true if the user mentioned one person, if the user didn't mention themself, and if the argument is actually a mention (contains the @ character).}\n{=(check.One):{all({check.Length1}==true|{in({user(id)}):{1}}==false|{in(@):{1}}==true):true|false}}\n{=(COMMENT):Returns true if the user mentioned two people, if the user didn't mention the same person twice, and if the arguments actually contain mentions (contains the @ character for each).}\n{=(check.Two):{all({check.Length2}==true|{1}!={2}|{check.At}==true):true|false}}\n\n{=(COMMENT):------Seed and Range Management------}\n{=(COMMENT):Sets the seed's content to the two first arguments/mentions. Reminder: Seeds allow range and random blocks to always return the same content when the given seed is the same.}\n{=(seed1):{user(id)} {1}}\n{=(seed2):{1} {2}}\n{=(do.Seed):{if({check.One}==true):{seed1}|{if({check.Two}==true):{seed2}}}}\n{=(COMMENT):Basic setup of the seeded range block.}\n{=(number):{range({do.Seed}):1-100}}\n{=(number1):{range({do.Seed}):1-100}}\n\n{=(COMMENT):------Outputs------}\n{=(COMMENT):Carl-bot Emojis to display depending on the value of \"number\".}\n{=(emojis):<:cbotneutral_face:676420694787096587> <:cbotface:676420695508647946> <:cbotgrinning:676420694694821899> <:cbotweary:676420694820651018> <:cbothearteyes:676420694715924500>}\n{=(emoji):{if({number}<=19):{emojis(1)}|{if({number}<=39):{emojis(2)}|{if({number}<=59):{emojis(3)}|{if({number}<=79):{emojis(4)}|{if({number}<=100):{emojis(5)}}}}}}}\n\n{=(COMMENT):Message to display when the user only mentioned one person.}\n{=(output.One):Making sandwiches with \n{user(mention)} and {1}...\n\nSandwiches quality: {user(mention)}**`{number}%`** {emoji}}\n{1} Sandwiches quality: **`{number1}%`** {emoji}\n\n{=(COMMENT):Message to display when the user mentioned two people.}\n{=(output.Two): Making sandwiches with \n**{1} and {2}**\n\n{1} Sandwiches quality: **`{number}%`**{emoji}}\n\n{=(COMMENT):Message to display when the user didn't mention anyone, showing them instructions on how to use the command properly.}\n{=(error):Please mention at least one person to make **sandwiches with**\nYou can either mention only one person so it will make sandwiches with the user that your mention, or mention two other people to see their sandwiches quality\nUsage: `{prefix}{tag.Name} @someone (optional @someone else)`}\n\n{=(COMMENT):Message to display when the user *only* mentioned themselves or where they mentioned themselves *and* themselves.}\n{=(yourself):Why would you make sandwiches yourself? Get some friends to make a sandwiches.}\n{=(COMMENT):Message to display when the user mentioned the two same people.}\n{=(same):They are the same person... They always have the same souls. You think making sandwiches can use your own shadow?. c:}\n\n{=(COMMENT):Conditionally call the proper output according to the situation.}\n{=(output):{if({check.One}==true):{output.One}|{if({check.Two}==true):{output.Two}|{all({check.Length1}==true|{in({user(id)}):{1}}==true):{yourself}|{all({check.Length2}==true|{1}=={2}|{in({user(id)}):{1}}==true):{yourself}|{all({check.Length2}==true|{1}=={2}):{same}|{error}}}}}}}\n\n{=(COMMENT):Debug Outputs, only to test out mistakes and potential errors. To call when debugging.}\n{=(output.Debug):__Debug:__\nCurrent Args Length: **{length}**\nLength check 1: **{check.Length1}**\nLength check 2: **{check.Length2}**\nChecks @@: **{check.At}**\nChecks len1 && @: **{check.One}**\nChecks len2 && @: **{check.Two}**\nSeed 1: **{seed1}**\nSeed 2: **{seed2}**\nSeed to return: **{do.Seed}**\nActual range: **{number}**}",
  "embed": "{\"color\": 5198940, \"title\": \"Makes sandwichs\", \"thumbnail\": {\"url\": \"https://cdn.discordapp.com/attachments/683274879037997074/709335228115582976/mae-mu-IZ0LRt1khgM-unsplash.jpg\"}, \"description\": \"{output}\"}",
  "last_fetched": "2026-10-20T21:24:44.060Z"
}