lovecalc
Privateunrated
Content
69 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):{range({do.Seed}):1-10}}
{=(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):Thats not how the command works bruv.
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):what a loner}
{=(COMMENT):Message to display when the user mentioned the two same people.}
{=(same):stop masturbating smh}
{=(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/attachments/826696802098348044/826715427597844500/826372783789178911-2.png"}, "description": "{output}"}Raw JSON
{
"id": 722040,
"created_at": "2021-04-02T09:56:16.000Z",
"tag_name": "lovecalc",
"nsfw": false,
"owner_id": "692591647040471060",
"uses": 44,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "826347516818620426",
"sharer": "692591647040471060",
"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):{range({do.Seed}):1-10}}\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):Thats not how the command works bruv.\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):what a loner}\n{=(COMMENT):Message to display when the user mentioned the two same people.}\n{=(same):stop masturbating smh}\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/attachments/826696802098348044/826715427597844500/826372783789178911-2.png\"}, \"description\": \"{output}\"}",
"last_fetched": "2026-10-21T00:56:05.020Z"
}