sneeze

Private

Content

176 lines
{=(COMMENT):Rev 06: 2026-03-20 Added a S3P2 gif, need another update to organize by season}
{=(COMMENT):Rev 05: 2025-01-05 Added a S3 gif}
{=(COMMENT):Rev 04: 2023-09-08 Switching Police role, from 632848133465964554 to 1149595257277775904}
{=(COMMENT):Rev 03: Adding a system for non members to infect others}
{=(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):sneeze}

{=(COMMENT):Roles IDs}
{=(COMMENT):898432167464554576 is the Cool down role iD}
{=(cdRole):898432167464554576}
{=(COMMENT):913619173517705286 is the Infected role that adds the symbol}
{=(InfectedRole):913619173517705286}
{=(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):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 has any of the above roles}
{=(HasRole):{any({isTRex}==true|{isYB}==true|{isPolice}==true|{isHybridgumi}==true|{isBooster}==true|{isClinic}==true):true|false}}

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

{=(COMMENT):Checks if the user Has either T-Rex or Booster.}
{=(isTRexOrBooster):{any({isTRex}==true|{isBooster}==true):true|false}}
{=(isTRexAndBooster):{all({isTRex}==true|{isBooster}==true):true|false}}
{=(isTRexAndBoosterAndYB):{all({isTRexAndBooster}==true|{isYB}==true):true|false}}

{=(COMMENT):Set up cooldown timer, varible based on role.}
{=(CDTime):{if({isTRexAndBoosterAndYB}==true):3h|{if({isTRexAndBooster}==true):6h|{if({isTRexOrBooster}==true):9h|12h}}}}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(cdFormat):{replace(h, hours):{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.}
{=(canSneeze):{all({isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}

{=(COMMENT):Duration of the infection}
{=(Duration):{if({HasRole}==true):20m|1m}}
{=(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({canSneeze}==true):c:temprole c {target(id)} {Duration} +{InfectedRole}}}

{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({canSneeze}==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(h,*3600):{CDTime}}}
{=(timeCD):{m:trunc({unix}+{CDSeconds})}}


{=(COMMENT):Error messages configuration.}
{=(msg.CommandFailed):⚠️ Unable to use to command due to not meeting conditions.}
{=(msg.noRole):⚠️ Special command for <@&{TRexRole}>, <@&{BRole}>, and <@&{YBRole}> only.}
{=(msg.cd):⚠️ You need to wait __{cdFormat}__ before you can infect someone else, {user(mention)}!}
{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get infected, {user(mention)}!}
{=(msg.alreadyInfected):{target(mention)} is currently already infected, {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.noMention):☣️ {user(mention)} has sneezed, thus started to show signs of being <@&{InfectedRole}>☣️ which last for __`{DFormat}`__.
⏰ Local time: <t:{timeID}:f>
☣️ You'll have to wait __`{cdFormat}`__ before sneezing again.
⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}
{=(msg.didInfect):☣️ {user(mention)}, you successfully sneezed on to {target(mention)} and made them <@&{InfectedRole}> ☣️ for __`{DFormat}`__!
⏰ Local time: <t:{timeID}:f>
☣️ You'll have to wait __`{cdFormat}`__ before sneezing again.
⏰ 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):🧪 BeastFlu ☣}

{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({canSneeze}==true):{msg.didInfect}|
								{msg.CommandFailed}
							}
						}
					}
				}
			}
		}
	}
}
}


{=(COMMENT):Sets the embed color Color}
{=(Infected_Color):#00D10F}
{=(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({canSneeze}==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}

{=(image):{#:1|https://imgur.com/uuDCmvQ.gif~1|https://imgur.com/eAAuAHl.gif~1|https://imgur.com/Et4fc3v.gif~1|https://imgur.com/N56Vcir.gif~1|https://imgur.com/15UVA6R.png~1|https://imgur.com/Q21uEgV.gif~1|https://imgur.com/vVtkMBQ.png~1|https://imgur.com/i2lAYPx.png~2|https://imgur.com/P9HBghd.gif~4|https://imgur.com/EY3s1sn.gif~2|https://imgur.com/2bgNWxd.gif}}
{=(embed.image):{if({canSneeze}==true):{image}}}
{embed.image}


{=(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": 53519, "image": {"url": "{embed.image}"}, "title": "test", "footer": {"text": "{embed.footer}"}, "description": "test"}
Raw JSON
{
  "id": 1163754,
  "created_at": "2021-11-24T05:10:18.000Z",
  "tag_name": "sneeze",
  "nsfw": false,
  "owner_id": "237997099432542209",
  "uses": 5970,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "632804599979311144",
  "sharer": "237997099432542209",
  "content": "{=(COMMENT):Rev 06: 2026-03-20 Added a S3P2 gif, need another update to organize by season}\n{=(COMMENT):Rev 05: 2025-01-05 Added a S3 gif}\n{=(COMMENT):Rev 04: 2023-09-08 Switching Police role, from 632848133465964554 to 1149595257277775904}\n{=(COMMENT):Rev 03: Adding a system for non members to infect others}\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):sneeze}\n\n{=(COMMENT):Roles IDs}\n{=(COMMENT):898432167464554576 is the Cool down role iD}\n{=(cdRole):898432167464554576}\n{=(COMMENT):913619173517705286 is the Infected role that adds the symbol}\n{=(InfectedRole):913619173517705286}\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\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 has any of the above roles}\n{=(HasRole):{any({isTRex}==true|{isYB}==true|{isPolice}==true|{isHybridgumi}==true|{isBooster}==true|{isClinic}==true):true|false}}\n\n{=(COMMENT):Checks if the user is currently infected.}\n{=(isInfected):{contains({InfectedRole}):{user(roleids)}}}\n{=(HasRoleFinal):{any({HasRole}==true|{isInfected}==true):true|false}}\n\n{=(COMMENT):Checks if the user Has either T-Rex or Booster.}\n{=(isTRexOrBooster):{any({isTRex}==true|{isBooster}==true):true|false}}\n{=(isTRexAndBooster):{all({isTRex}==true|{isBooster}==true):true|false}}\n{=(isTRexAndBoosterAndYB):{all({isTRexAndBooster}==true|{isYB}==true):true|false}}\n\n{=(COMMENT):Set up cooldown timer, varible based on role.}\n{=(CDTime):{if({isTRexAndBoosterAndYB}==true):3h|{if({isTRexAndBooster}==true):6h|{if({isTRexOrBooster}==true):9h|12h}}}}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(cdFormat):{replace(h, hours):{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{=(canSneeze):{all({isCooldown}==false|{isTargetInfected}==false|{isUserNERole}==false|{isTargetNERole}==false|{HasRoleFinal}==true|{isTargetFreshman}==false):true|false}}\n\n{=(COMMENT):Duration of the infection}\n{=(Duration):{if({HasRole}==true):20m|1m}}\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{=():}\n{=(COMMENT):Infects the target by transferring their role to them.}\n{{if({canSneeze}==true):c:temprole c {target(id)} {Duration} +{InfectedRole}}}\n\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({canSneeze}==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(h,*3600):{CDTime}}}\n{=(timeCD):{m:trunc({unix}+{CDSeconds})}}\n\n\n{=(COMMENT):Error messages configuration.}\n{=(msg.CommandFailed):⚠️ Unable to use to command due to not meeting conditions.}\n{=(msg.noRole):⚠️ Special command for <@&{TRexRole}>, <@&{BRole}>, and <@&{YBRole}> only.}\n{=(msg.cd):⚠️ You need to wait __{cdFormat}__ before you can infect someone else, {user(mention)}!}\n{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get infected, {user(mention)}!}\n{=(msg.alreadyInfected):{target(mention)} is currently already infected, {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\n{=(msg.noMention):☣️ {user(mention)} has sneezed, thus started to show signs of being <@&{InfectedRole}>☣️ which last for __`{DFormat}`__.\n⏰ Local time: <t:{timeID}:f>\n☣️ You'll have to wait __`{cdFormat}`__ before sneezing again.\n⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}\n{=(msg.didInfect):☣️ {user(mention)}, you successfully sneezed on to {target(mention)} and made them <@&{InfectedRole}> ☣️ for __`{DFormat}`__!\n⏰ Local time: <t:{timeID}:f>\n☣️ You'll have to wait __`{cdFormat}`__ before sneezing again.\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):🧪 BeastFlu ☣}\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({canSneeze}==true):{msg.didInfect}|\n\t\t\t\t\t\t\t\t{msg.CommandFailed}\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):#00D10F}\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({canSneeze}==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{=(image):{#:1|https://imgur.com/uuDCmvQ.gif~1|https://imgur.com/eAAuAHl.gif~1|https://imgur.com/Et4fc3v.gif~1|https://imgur.com/N56Vcir.gif~1|https://imgur.com/15UVA6R.png~1|https://imgur.com/Q21uEgV.gif~1|https://imgur.com/vVtkMBQ.png~1|https://imgur.com/i2lAYPx.png~2|https://imgur.com/P9HBghd.gif~4|https://imgur.com/EY3s1sn.gif~2|https://imgur.com/2bgNWxd.gif}}\n{=(embed.image):{if({canSneeze}==true):{image}}}\n{embed.image}\n\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\": 53519, \"image\": {\"url\": \"{embed.image}\"}, \"title\": \"test\", \"footer\": {\"text\": \"{embed.footer}\"}, \"description\": \"test\"}",
  "last_fetched": "2026-10-20T18:03:29.124Z"
}