ship

Privateunrated

Content

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

{=(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):#0058DC}

{=(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}}

{=(COMMENT):------Outputs------}
{=(COMMENT):Carl-bot Emojis to display depending on the value of "number".}
{=(emojis):<:AORIP:773237484095537172> <:AOCRY:773239169090322462> <:cbotgrinning:676420694694821899> <:AOLOVE0:773239154867437578> <:AOLOVE1:773239134390452246><:AOLOVE2:773239107140059166>}
{=(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):Checking for compatibility between
{user(mention)} and {1}...

Result:  **`{number}% compatible`** {emoji}}
{=(COMMENT):Message to display when the user mentioned two people.}
{=(output.Two):Sprawdzanie czy {1} i {2} do siebie pasują...

Dopasowanie:  **`{number}%`** {emoji}}

{=(COMMENT):Message to display when the user didn't mention anyone, showing them instructions on how to use the command properly.}
{=(error):Musisz oznaczyć przynajmniej jedną osobę!
Przykład: ``/ship @ ...``}

{=(COMMENT):Message to display when the user *only* mentioned themselves or where they mentioned themselves *and* themselves.}
{=(yourself):Dlaczego taki jesteś? To tak nie działa...}
{=(COMMENT):Message to display when the user mentioned the two same people.}
{=(same):To ta sama osoba...}

{=(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": "💘Kalkulator miłości💘", "description": "{output}"}
Raw JSON
{
  "id": 408865,
  "created_at": "2020-11-03T17:19:59.000Z",
  "tag_name": "ship",
  "nsfw": false,
  "owner_id": "165850436174086145",
  "uses": 48,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "738684335644737576",
  "sharer": "165850436174086145",
  "content": "{=(COMMENT):Quick setup to adapt the command to your server's settings. (Prefix and command name)}\n{=(prefix):/}\n{=(tag.Name):lovecalc}\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):#0058DC}\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\n{=(COMMENT):------Outputs------}\n{=(COMMENT):Carl-bot Emojis to display depending on the value of \"number\".}\n{=(emojis):<:AORIP:773237484095537172> <:AOCRY:773239169090322462> <:cbotgrinning:676420694694821899> <:AOLOVE0:773239154867437578> <:AOLOVE1:773239134390452246><:AOLOVE2:773239107140059166>}\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):Checking for compatibility between\n{user(mention)} and {1}...\n\nResult:  **`{number}% compatible`** {emoji}}\n{=(COMMENT):Message to display when the user mentioned two people.}\n{=(output.Two):Sprawdzanie czy {1} i {2} do siebie pasują...\n\nDopasowanie:  **`{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):Musisz oznaczyć przynajmniej jedną osobę!\nPrzykład: ``/ship @ ...``}\n\n{=(COMMENT):Message to display when the user *only* mentioned themselves or where they mentioned themselves *and* themselves.}\n{=(yourself):Dlaczego taki jesteś? To tak nie działa...}\n{=(COMMENT):Message to display when the user mentioned the two same people.}\n{=(same):To ta sama osoba...}\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\": \"💘Kalkulator miłości💘\", \"description\": \"{output}\"}",
  "last_fetched": "2026-10-20T23:00:37.119Z"
}