lovecalc
Private
Content
71 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):{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):{or({1}==<@747351189280260197>|{2}==<@747351189280260197>):100|{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):Checking for compatibility between
{user(mention)} and {1}...
Result: **`{number}% compatible`** {emoji}}
{=(COMMENT):Message to display when the user mentioned two people.}
{=(output.Two):Checking for compatibility between
{1} and {2}...
Result: **`{number}% compatible`** {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 see if you are compatible.
You can either mention only one person so it will check for the compatibility between them and yourself, or mention two other people to see how compatible they are.
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 check how much you love yourself?
Give yourself some love, little bean. ❤}
{=(COMMENT):Message to display when the user mentioned the two same people.}
{=(same):They are the same person... Of course they are compatible. 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": "Love Calculator", "thumbnail": {"url": "https://cdn.discordapp.com/emojis/425417024722829344.png?v=1"}, "description": "{output}"}Raw JSON
{
"id": 1693364,
"created_at": "2023-03-21T13:17:14.000Z",
"tag_name": "lovecalc",
"nsfw": false,
"owner_id": "747351189280260197",
"uses": 15,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "960546865462526022",
"sharer": "540899249253253132",
"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):{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):{or({1}==<@747351189280260197>|{2}==<@747351189280260197>):100|{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):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):Checking for compatibility between\n{1} and {2}...\n\nResult: **`{number}% compatible`** {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 see if you are compatible.\nYou can either mention only one person so it will check for the compatibility between them and yourself, or mention two other people to see how compatible they are.\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 check how much you love yourself?\nGive yourself some love, little bean. ❤}\n{=(COMMENT):Message to display when the user mentioned the two same people.}\n{=(same):They are the same person... Of course they are compatible. 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\": \"Love Calculator\", \"thumbnail\": {\"url\": \"https://cdn.discordapp.com/emojis/425417024722829344.png?v=1\"}, \"description\": \"{output}\"}",
"last_fetched": "2026-10-20T19:12:33.659Z"
}