cakeimagetest

Private

Content

218 lines
{=(COMMENT):2024-10-11 rev 01: Using 'sneeze' and replacing infected role with caked and cd with a new role}
{=(COMMENT):Rev 01: Cake day}
{=(COMMENT):General configuration}
{=(COMMENT):Main prefix and name of the tag, to be used in the command's instructions if you'd like to display them.}
{=(prefix):.}
{=(tagName):cake}
{=():}

{=(COMMENT):Roles IDs}
{=(COMMENT):689696613597315079 is the Dead role iD}
{=(DRole):689696613597315079}
{=(COMMENT):1294434507914481784 is the Cool down role iD}
{=(cdRole):1294434507914481784}
{=(COMMENT):1294434469058445402 is the Caked role that adds the Cake icon}
{=(InfectedRole):1294434469058445402}
{=(COMMENT):633065421829963776 is the booster role, aka All-Organism Council}
{=(BRole):633065421829963776}
{=(COMMENT):737532034930442342 is the T-Rex role, aka Reward Role}
{=(TRexRole):737532034930442342}
{=(COMMENT):1149595257277775904 is the Mod role, aka Police}
{=(PRole):1149595257277775904}
{=(COMMENT):is 691787391244959754 is the Hybridgumi Role}
{=(HRole):691787391244959754}
{=(COMMENT):is 824746693286297631 is the Clinic Assistant Role}
{=(CRole):824746693286297631}
{=(COMMENT):898435578780074056 is the [No Events] Role, which requested not to participate in any server events.}
{=(NERole):898435578780074056}
{=(COMMENT):651172902871367712 is freshman role, protection given to prevent action on new members}
{=(FRole):651172902871367712}
{=(COMMENT):920543040966393906 is the Young Beastars role, reward for Leaderboard}
{=(YBRole):920543040966393906}
{=(COMMENT):1171271428281212948 is AciveRole, used to indicate if someone is active.}
{=(AciveRole):1171271428281212948}

{=(COMMENT):Conditional checks}
{=(COMMENT):Checks if the user has any of the required roles}
{=(COMMENT):Checks if the user is Young Beastar. Reward role for 1st place of all Leaderboard}
{=(isYB):{contains({YBRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is T-Rex.}
{=(isTRex):{contains({TRexRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is Police, aka Mod}
{=(isPolice):{contains({PRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is Hybridgumi .}
{=(isHybridgumi):{contains({HRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user Booster.}
{=(isBooster):{contains({BRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user Clinic Staff.}
{=(isClinic):{contains({CRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user AciveRole.}
{=(isActive):{contains({AciveRole}):{user(roleids)}}}
{=(COMMENT):Checks has any of the above roles}

{=(COMMENT):Checks if the user is currently infected.}
{=(isInfected):{contains({InfectedRole}):{user(roleids)}}}
{=(HasRole):{any({isInfected}==true):true|false}}
{=(HasRoleFinal):{any({HasRole}==true|{isInfected}==true):true|false}}

{=(COMMENT):Setup for kill or no kill.}
{=(KillChance):{#:3|1~5|0}}
{=(TargetWho):{{#:5|user(id)~4|target(id)}}}
{=(isKill):{any({KillChance}==1):true|false}}

{=(CDTime):360m}
{=(COMMENT):Specialclass check to reduce timer. time in minutes}
{=(CDActive):{if({isActive}==true):30|0}}
{=(CDYB):{if({isYB}==true):60|0}}
{=(CDTRex):{if({isTRex}==true):60|0}}
{=(CDBooster):{if({isBooster}==true):60|0}}
{=(CDMinutes):{replace(m,*1):{CDTime}}}
{=(CDTime):{m:trunc({CDMinutes}-{CDActive}-{CDYB}-{CDTRex}-{CDBooster})}}
{=(CDTime):{CDTime}m}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(cdFormat):{replace(m, minutes):{CDTime}}}

{=(COMMENT):Checks if the user is on cooldown.}
{=(isCooldown):{contains({cdRole}):{user(roleids)}}}
{=(COMMENT):Checks if the target is currently infected.}
{=(isTargetInfected):{contains({InfectedRole}):{target(roleids)}}}
{=(COMMENT):Checks if the user is currently has no event role.}
{=(isUserNERole):{contains({NERole}):{user(roleids)}}}
{=(COMMENT):Checks if the mentioned target has no events role, thus does not want to participate in any events}
{=(isTargetNERole):{contains({NERole}):{target(roleids)}}}
{=(COMMENT):Checks if the mentioned target has Freshman Role, Protection for new members}
{=(isTargetFreshman):{contains({FRole}):{target(roleids)}}}

{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned. Use as special message output [originally as condition of use]}
{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}

{=(COMMENT):Checks if the user can infect by meeting the proper conditions.}
{=(canCake):{all({isKill}==false|{isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}

{=(COMMENT):Checks if the user can kill the other by meeting the proper conditions.}
{=(canKill):{all({isKill}==true|{isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}

{=(COMMENT):Sets up a boolean for who died, if someone did.}
{=(UserDied):{all({canKill}==true|{TargetWho}=={user(id)}):true|false}}
{=(TargetDied):{all({canKill}==true|{TargetWho}=={target(id)}):true|false}}

{=(COMMENT):Duration of the infection}
{=(Duration):{if({HasRole}==true):300m|360m}}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(DFormat):{replace(m, minutes):{Duration}}}

{=(COMMENT):Command execution}
{=(COMMENT):Infects the target by transferring their role to them.}
{{if({canCake}==true):c:temprole c {target(id)} {Duration} +{InfectedRole}}}

{=(COMMENT):Kills the correct target if that is the outcome.}
{{if({canKill}==true):c:temprole c {TargetWho} 1 minute +{DRole}}}

{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({canCake}==true):c:temprole {user(id)} {cdRole} {CDTime}}}

{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({canKill}==true):c:temprole {user(id)} {cdRole} {CDTime}}}

{=(COMMENT):Setting up time Statement}
{=(COMMENT):Time for infected duration, 20min converted into seconds}
{=(DurationSeconds):{replace(m,*60):{Duration}}}
{=(timeID):{m:round({unix}+{DurationSeconds})}}
{=(COMMENT):Time for CD duration. Does not know how to do change 12h to second manually, so changing it manually}
{=(COMMENT):CD Time for normal, used formula}
{=(CDSeconds):{replace(m,*60):{CDTime}}}
{=(timeCD):{m:trunc({unix}+{CDSeconds})}}

{=(COMMENT):Error messages configuration.}
{=(msg.noMention):🍰 {user(mention)} has tried to throw a cake on themself! How odd... 
-# ⚠️ Try it on someone else!}
{=(msg.noRole):You need to be caked to cake!}
{=(msg.cd):⚠️ You need to wait __{cdFormat}__ before you can cake someone else, {user(mention)}!}
{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get caked, {user(mention)}!}
{=(msg.alreadyInfected):⚠️ {target(mention)} is currently already caked, {user(mention)}!}
{=(msg.UserNE):⚠️ {user(mention)}, you cannot use this command due to <@&{NERole}> :octagonal_sign: blocking the use of optional commands!}
{=(msg.TargetNE):⚠️ Users with <@&{NERole}> :octagonal_sign: have opted out of optional commands.  
Please select a different target, {user(mention)}!}
{=(msg.TargetFresh):⚠️ <@&{FRole}> are immune to optional commands since they are new members.
Please select a different target, {user(mention)}!}
{=(msg.UserKilled):🪦 {user(mention)} Slipped up and dropped an explosive cake on themself!
🍰 {user(mention)} is now <@&{DRole}> for ``1m``!
🎈 They will have to wait __`{cdFormat}`__ before throwing another.
⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}
{=(msg.TargetKilled):🪦 {user(mention)} tossed an explosive cake in {target(mention)}'s face!
🍰 {target(mention)} is now <@&{DRole}> for ``1m``!
🎈 They'll have to wait __`{cdFormat}`__ before throwing another.
⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}
{=(msg.CommandFailed):⚠️ Command failed!}

{=(msg.didInfect):🍰 {user(mention)}, you successfully threw a cake on {target(mention)} and made them <@&{InfectedRole}> for __`{DFormat}`__!
⏰ Local time: <t:{timeID}:f>
🎈 You'll have to wait __`{cdFormat}`__ before throwing another.
⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}

{=(COMMENT):Output management. Displays the message corresponding to the current situation. Adapts to the player's behavior. Done as a loop instead of nested for cleaner view}
{embed(title):🎈 /r/Beastars 5th Anniversary 🍰}

{embed(description):{if({HasRoleFinal}==false):{msg.noRole}|
	{if({isCooldown}==true):{msg.cd}|
		{if({isTargetNERole}==true):{msg.TargetNE}|
			{if({isTargetInfected}==true):{msg.alreadyInfected}|
				{if({isTargetFreshman}==true):{msg.TargetFresh}|
					{if({isUserNERole}==true):{msg.UserNE}|
						{if({isUserTarget}==true):{msg.noMention}|
							{if({canCake}==true):{msg.didInfect}|
								{if({UserDied}==true):{msg.UserKilled}|
									{if({TargetDied}==true):{msg.TargetKilled}|
										{msg.CommandFailed}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
}


{=(COMMENT):Sets the embed color Color}
{=(Infected_Color):#fd5a8b}
{=(BloodRedForFail):#880808}
{=(Freshman_Role_Color):#9900cc}

{=(COMMENT):Checks if the user can has error due to freshman .}
{=(ErrorFreshman):{all({isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRole}==true|{isTargetFreshman}==true):true|false}}

{embed(color):
	{if({canCake}==true):{Infected_Color}|
		{if({ErrorFreshman}==true):{Freshman_Role_Color}|{BloodRedForFail}
		}
	}
}


{=(COMMENT):Embed variable, since no section, answer so put it into the embed builder}

{=(embed.footer):{prefix}{tagName} @target}

{=(sourcelinks):{#:1|-# Sources For Images
-# [Legoshi/Haru "Happy Birthday"](<https://x.com/nano_mono_/status/1714996467914416374?s=20>)}}

{=(image):{#:1|https://cdn.discordapp.com/attachments/915378095215755317/1294732696064364606/cakeimage2.png?ex=670c1549&is=670ac3c9&hm=f5fe9bceffbcbf07d49b7c52fffa52f4afd5661b4e72ff5de2a662f623e65e9f&}}

{=(killImage):{#:1|https://cdn.discordapp.com/attachments/915378095215755317/1294732575037984899/cakeimage1.png?ex=670c152c&is=670ac3ac&hm=0fbfe9b387465a75e29ce71c7d7edb5f4c73dd167d7ccfa960a30c1472a8578f&}}

{=(embed.image):{if({canCake}==true):{image}|
    {if({canKill}==true):{killImage}        
    }
}}

{sourcelinks}

{=(COMMENT):Avoids the bot's default outputs to only have our custom ones to display.}
{silence}

{=(COMMENT):Allows the user of the tag to actually execute the command blocks above, while they normally couldn't outside of it because of the lack of permissions.}
{override}

Embed

1 line
{"color": 5198940, "image": {"url": "{embed.image}"}, "title": "test", "footer": {"text": "{embed.footer}"}, "description": "test"}
Raw JSON
{
  "id": 2131021,
  "created_at": "2024-10-12T19:15:07.000Z",
  "tag_name": "cakeimagetest",
  "nsfw": false,
  "owner_id": "521368542113955841",
  "uses": 90,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "632804599979311144",
  "sharer": "237997099432542209",
  "content": "{=(COMMENT):2024-10-11 rev 01: Using 'sneeze' and replacing infected role with caked and cd with a new role}\n{=(COMMENT):Rev 01: Cake day}\n{=(COMMENT):General configuration}\n{=(COMMENT):Main prefix and name of the tag, to be used in the command's instructions if you'd like to display them.}\n{=(prefix):.}\n{=(tagName):cake}\n{=():}\n\n{=(COMMENT):Roles IDs}\n{=(COMMENT):689696613597315079 is the Dead role iD}\n{=(DRole):689696613597315079}\n{=(COMMENT):1294434507914481784 is the Cool down role iD}\n{=(cdRole):1294434507914481784}\n{=(COMMENT):1294434469058445402 is the Caked role that adds the Cake icon}\n{=(InfectedRole):1294434469058445402}\n{=(COMMENT):633065421829963776 is the booster role, aka All-Organism Council}\n{=(BRole):633065421829963776}\n{=(COMMENT):737532034930442342 is the T-Rex role, aka Reward Role}\n{=(TRexRole):737532034930442342}\n{=(COMMENT):1149595257277775904 is the Mod role, aka Police}\n{=(PRole):1149595257277775904}\n{=(COMMENT):is 691787391244959754 is the Hybridgumi Role}\n{=(HRole):691787391244959754}\n{=(COMMENT):is 824746693286297631 is the Clinic Assistant Role}\n{=(CRole):824746693286297631}\n{=(COMMENT):898435578780074056 is the [No Events] Role, which requested not to participate in any server events.}\n{=(NERole):898435578780074056}\n{=(COMMENT):651172902871367712 is freshman role, protection given to prevent action on new members}\n{=(FRole):651172902871367712}\n{=(COMMENT):920543040966393906 is the Young Beastars role, reward for Leaderboard}\n{=(YBRole):920543040966393906}\n{=(COMMENT):1171271428281212948 is AciveRole, used to indicate if someone is active.}\n{=(AciveRole):1171271428281212948}\n\n{=(COMMENT):Conditional checks}\n{=(COMMENT):Checks if the user has any of the required roles}\n{=(COMMENT):Checks if the user is Young Beastar. Reward role for 1st place of all Leaderboard}\n{=(isYB):{contains({YBRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is T-Rex.}\n{=(isTRex):{contains({TRexRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is Police, aka Mod}\n{=(isPolice):{contains({PRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is Hybridgumi .}\n{=(isHybridgumi):{contains({HRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user Booster.}\n{=(isBooster):{contains({BRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user Clinic Staff.}\n{=(isClinic):{contains({CRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user AciveRole.}\n{=(isActive):{contains({AciveRole}):{user(roleids)}}}\n{=(COMMENT):Checks has any of the above roles}\n\n{=(COMMENT):Checks if the user is currently infected.}\n{=(isInfected):{contains({InfectedRole}):{user(roleids)}}}\n{=(HasRole):{any({isInfected}==true):true|false}}\n{=(HasRoleFinal):{any({HasRole}==true|{isInfected}==true):true|false}}\n\n{=(COMMENT):Setup for kill or no kill.}\n{=(KillChance):{#:3|1~5|0}}\n{=(TargetWho):{{#:5|user(id)~4|target(id)}}}\n{=(isKill):{any({KillChance}==1):true|false}}\n\n{=(CDTime):360m}\n{=(COMMENT):Specialclass check to reduce timer. time in minutes}\n{=(CDActive):{if({isActive}==true):30|0}}\n{=(CDYB):{if({isYB}==true):60|0}}\n{=(CDTRex):{if({isTRex}==true):60|0}}\n{=(CDBooster):{if({isBooster}==true):60|0}}\n{=(CDMinutes):{replace(m,*1):{CDTime}}}\n{=(CDTime):{m:trunc({CDMinutes}-{CDActive}-{CDYB}-{CDTRex}-{CDBooster})}}\n{=(CDTime):{CDTime}m}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(cdFormat):{replace(m, minutes):{CDTime}}}\n\n{=(COMMENT):Checks if the user is on cooldown.}\n{=(isCooldown):{contains({cdRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the target is currently infected.}\n{=(isTargetInfected):{contains({InfectedRole}):{target(roleids)}}}\n{=(COMMENT):Checks if the user is currently has no event role.}\n{=(isUserNERole):{contains({NERole}):{user(roleids)}}}\n{=(COMMENT):Checks if the mentioned target has no events role, thus does not want to participate in any events}\n{=(isTargetNERole):{contains({NERole}):{target(roleids)}}}\n{=(COMMENT):Checks if the mentioned target has Freshman Role, Protection for new members}\n{=(isTargetFreshman):{contains({FRole}):{target(roleids)}}}\n\n{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned. Use as special message output [originally as condition of use]}\n{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}\n\n{=(COMMENT):Checks if the user can infect by meeting the proper conditions.}\n{=(canCake):{all({isKill}==false|{isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}\n\n{=(COMMENT):Checks if the user can kill the other by meeting the proper conditions.}\n{=(canKill):{all({isKill}==true|{isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}\n\n{=(COMMENT):Sets up a boolean for who died, if someone did.}\n{=(UserDied):{all({canKill}==true|{TargetWho}=={user(id)}):true|false}}\n{=(TargetDied):{all({canKill}==true|{TargetWho}=={target(id)}):true|false}}\n\n{=(COMMENT):Duration of the infection}\n{=(Duration):{if({HasRole}==true):300m|360m}}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(DFormat):{replace(m, minutes):{Duration}}}\n\n{=(COMMENT):Command execution}\n{=(COMMENT):Infects the target by transferring their role to them.}\n{{if({canCake}==true):c:temprole c {target(id)} {Duration} +{InfectedRole}}}\n\n{=(COMMENT):Kills the correct target if that is the outcome.}\n{{if({canKill}==true):c:temprole c {TargetWho} 1 minute +{DRole}}}\n\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({canCake}==true):c:temprole {user(id)} {cdRole} {CDTime}}}\n\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({canKill}==true):c:temprole {user(id)} {cdRole} {CDTime}}}\n\n{=(COMMENT):Setting up time Statement}\n{=(COMMENT):Time for infected duration, 20min converted into seconds}\n{=(DurationSeconds):{replace(m,*60):{Duration}}}\n{=(timeID):{m:round({unix}+{DurationSeconds})}}\n{=(COMMENT):Time for CD duration. Does not know how to do change 12h to second manually, so changing it manually}\n{=(COMMENT):CD Time for normal, used formula}\n{=(CDSeconds):{replace(m,*60):{CDTime}}}\n{=(timeCD):{m:trunc({unix}+{CDSeconds})}}\n\n{=(COMMENT):Error messages configuration.}\n{=(msg.noMention):🍰 {user(mention)} has tried to throw a cake on themself! How odd... \n-# ⚠️ Try it on someone else!}\n{=(msg.noRole):You need to be caked to cake!}\n{=(msg.cd):⚠️ You need to wait __{cdFormat}__ before you can cake someone else, {user(mention)}!}\n{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get caked, {user(mention)}!}\n{=(msg.alreadyInfected):⚠️ {target(mention)} is currently already caked, {user(mention)}!}\n{=(msg.UserNE):⚠️ {user(mention)}, you cannot use this command due to <@&{NERole}> :octagonal_sign: blocking the use of optional commands!}\n{=(msg.TargetNE):⚠️ Users with <@&{NERole}> :octagonal_sign: have opted out of optional commands.  \nPlease select a different target, {user(mention)}!}\n{=(msg.TargetFresh):⚠️ <@&{FRole}> are immune to optional commands since they are new members.\nPlease select a different target, {user(mention)}!}\n{=(msg.UserKilled):🪦 {user(mention)} Slipped up and dropped an explosive cake on themself!\n🍰 {user(mention)} is now <@&{DRole}> for ``1m``!\n🎈 They will have to wait __`{cdFormat}`__ before throwing another.\n⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}\n{=(msg.TargetKilled):🪦 {user(mention)} tossed an explosive cake in {target(mention)}'s face!\n🍰 {target(mention)} is now <@&{DRole}> for ``1m``!\n🎈 They'll have to wait __`{cdFormat}`__ before throwing another.\n⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}\n{=(msg.CommandFailed):⚠️ Command failed!}\n\n{=(msg.didInfect):🍰 {user(mention)}, you successfully threw a cake on {target(mention)} and made them <@&{InfectedRole}> for __`{DFormat}`__!\n⏰ Local time: <t:{timeID}:f>\n🎈 You'll have to wait __`{cdFormat}`__ before throwing another.\n⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}\n\n{=(COMMENT):Output management. Displays the message corresponding to the current situation. Adapts to the player's behavior. Done as a loop instead of nested for cleaner view}\n{embed(title):🎈 /r/Beastars 5th Anniversary 🍰}\n\n{embed(description):{if({HasRoleFinal}==false):{msg.noRole}|\n\t{if({isCooldown}==true):{msg.cd}|\n\t\t{if({isTargetNERole}==true):{msg.TargetNE}|\n\t\t\t{if({isTargetInfected}==true):{msg.alreadyInfected}|\n\t\t\t\t{if({isTargetFreshman}==true):{msg.TargetFresh}|\n\t\t\t\t\t{if({isUserNERole}==true):{msg.UserNE}|\n\t\t\t\t\t\t{if({isUserTarget}==true):{msg.noMention}|\n\t\t\t\t\t\t\t{if({canCake}==true):{msg.didInfect}|\n\t\t\t\t\t\t\t\t{if({UserDied}==true):{msg.UserKilled}|\n\t\t\t\t\t\t\t\t\t{if({TargetDied}==true):{msg.TargetKilled}|\n\t\t\t\t\t\t\t\t\t\t{msg.CommandFailed}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n}\n\n\n{=(COMMENT):Sets the embed color Color}\n{=(Infected_Color):#fd5a8b}\n{=(BloodRedForFail):#880808}\n{=(Freshman_Role_Color):#9900cc}\n\n{=(COMMENT):Checks if the user can has error due to freshman .}\n{=(ErrorFreshman):{all({isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRole}==true|{isTargetFreshman}==true):true|false}}\n\n{embed(color):\n\t{if({canCake}==true):{Infected_Color}|\n\t\t{if({ErrorFreshman}==true):{Freshman_Role_Color}|{BloodRedForFail}\n\t\t}\n\t}\n}\n\n\n{=(COMMENT):Embed variable, since no section, answer so put it into the embed builder}\n\n{=(embed.footer):{prefix}{tagName} @target}\n\n{=(sourcelinks):{#:1|-# Sources For Images\n-# [Legoshi/Haru \"Happy Birthday\"](<https://x.com/nano_mono_/status/1714996467914416374?s=20>)}}\n\n{=(image):{#:1|https://cdn.discordapp.com/attachments/915378095215755317/1294732696064364606/cakeimage2.png?ex=670c1549&is=670ac3c9&hm=f5fe9bceffbcbf07d49b7c52fffa52f4afd5661b4e72ff5de2a662f623e65e9f&}}\n\n{=(killImage):{#:1|https://cdn.discordapp.com/attachments/915378095215755317/1294732575037984899/cakeimage1.png?ex=670c152c&is=670ac3ac&hm=0fbfe9b387465a75e29ce71c7d7edb5f4c73dd167d7ccfa960a30c1472a8578f&}}\n\n{=(embed.image):{if({canCake}==true):{image}|\n    {if({canKill}==true):{killImage}        \n    }\n}}\n\n{sourcelinks}\n\n{=(COMMENT):Avoids the bot's default outputs to only have our custom ones to display.}\n{silence}\n\n{=(COMMENT):Allows the user of the tag to actually execute the command blocks above, while they normally couldn't outside of it because of the lack of permissions.}\n{override}",
  "embed": "{\"color\": 5198940, \"image\": {\"url\": \"{embed.image}\"}, \"title\": \"test\", \"footer\": {\"text\": \"{embed.footer}\"}, \"description\": \"test\"}",
  "last_fetched": "2026-10-20T19:45:40.271Z"
}