infect
Privateunrated
Content
61 lines{=(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):infect}
{=(cooldown):15m}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(cdFormat):{replace(m, minutes):{cooldown}}}
{=(COMMENT):Error messages configuration.}
{=(msg.noMention):You need to mention someone to infect, {user(mention)}!}
{=(msg.notInfected):You’re not currently infected, {user(mention)}! Only those with the virus can pass it on to others!}
{=(msg.cd):You need to wait {cdFormat} before you can infect someone else, {user(mention)}!}
{=(msg.didInfect):{user(mention)}, you successfully transferred your infection to {target(mention)}!
You'll have to wait {cdFormat} before infecting someone again if you get infected another time after using this command!}
{=(msg.alreadyInfected):{target(mention)} is currently already infected, {user(mention)}!}
{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get infected, {user(mention)}! Otherwise you infect them and then the game stops, which would be too bad.}
{=(COMMENT):Roles IDs}
{=(cdRole):815812806271303710}
{=(infectedRole):815812674100920333}
{=(COMMENT):Put below the role ID that all the bots in your server have. It will be used to ensure no member tries to infect bots, as they can't infect anybody after that, obviously.}
{=(botRole):739555595597643786}
{=(COMMENT):Conditional checks}
{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned.}
{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}
{=(COMMENT):Checks if the user is on cooldown.}
{=(isCooldown):{contains({cdRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is currently infected.}
{=(isUserInfected):{contains({infectedRole}):{user(roleids)}}}
{=(COMMENT):Checks if the mentioned target is already infected.}
{=(isTargetInfected):{contains({infectedRole}):{target(roleids)}}}
{=(COMMENT):Checks if the target is a bot (has the bot role).}
{=(isTargetBot):{contains({botRole}):{target(roleids)}}}
{=(COMMENT):Checks if the user can infect by meeting the proper conditions.}
{=(canInfect):{all({isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserInfected}==true|{isTargetBot}==false):true|false}}
{=(COMMENT):Command execution}
{=():}
{=(COMMENT):Infects the target by transferring their role to them.}
{{if({canInfect}==true):c:role add {target(id)} {infectedRole}}}
{{if({canInfect}==true):c:role remove {user(id)} {infectedRole}}}
{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({canInfect}==true):c:temprole {user(id)} {cdRole} {cooldown}}}
{=(COMMENT):Output management. Displays the message corresponding to the current situation. Adapts to the player's behavior.}
{=(embed.title):🧪 Infection Game ☣}
{=(embed.description):{if({isUserInfected}==false):{msg.notInfected}|{if({isUserTarget}==true):{msg.noMention}|{if({isCooldown}==true):{msg.cd}|{if({isTargetBot}==true):{msg.targetIsBot}|{if({isTargetInfected}==true):{msg.alreadyInfected}|{msg.didInfect}}}}}}}
{=(embed.footer):{prefix}{tagName} @target}
{=(COMMENT):Sets the embed color to green.}
{embed(color):#00D10F}
{=(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, "title": "{embed.title}", "description": "{embed.description}"}Raw JSON
{
"id": 979863,
"created_at": "2021-07-31T02:04:47.000Z",
"tag_name": "infect",
"nsfw": false,
"owner_id": "559927848069103647",
"uses": 2,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "847612617870409758",
"sharer": "559927848069103647",
"content": "{=(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):infect}\n\n{=(cooldown):15m}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(cdFormat):{replace(m, minutes):{cooldown}}}\n\n{=(COMMENT):Error messages configuration.}\n{=(msg.noMention):You need to mention someone to infect, {user(mention)}!}\n{=(msg.notInfected):You’re not currently infected, {user(mention)}! Only those with the virus can pass it on to others!}\n{=(msg.cd):You need to wait {cdFormat} before you can infect someone else, {user(mention)}!}\n{=(msg.didInfect):{user(mention)}, you successfully transferred your infection to {target(mention)}!\nYou'll have to wait {cdFormat} before infecting someone again if you get infected another time after using this command!}\n{=(msg.alreadyInfected):{target(mention)} is currently already infected, {user(mention)}!}\n{=(msg.targetIsBot):{target(mention)} is a bot and therefore cannot get infected, {user(mention)}! Otherwise you infect them and then the game stops, which would be too bad.}\n\n{=(COMMENT):Roles IDs}\n{=(cdRole):815812806271303710}\n{=(infectedRole):815812674100920333}\n{=(COMMENT):Put below the role ID that all the bots in your server have. It will be used to ensure no member tries to infect bots, as they can't infect anybody after that, obviously.}\n{=(botRole):739555595597643786}\n\n{=(COMMENT):Conditional checks}\n{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned.}\n{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}\n{=(COMMENT):Checks if the user is on cooldown.}\n{=(isCooldown):{contains({cdRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is currently infected.}\n{=(isUserInfected):{contains({infectedRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the mentioned target is already infected.}\n{=(isTargetInfected):{contains({infectedRole}):{target(roleids)}}}\n{=(COMMENT):Checks if the target is a bot (has the bot role).}\n{=(isTargetBot):{contains({botRole}):{target(roleids)}}}\n\n{=(COMMENT):Checks if the user can infect by meeting the proper conditions.}\n{=(canInfect):{all({isUserTarget}==false|{isCooldown}==false|{isTargetInfected}==false|{isUserInfected}==true|{isTargetBot}==false):true|false}}\n\n{=(COMMENT):Command execution}\n{=():}\n{=(COMMENT):Infects the target by transferring their role to them.}\n{{if({canInfect}==true):c:role add {target(id)} {infectedRole}}}\n{{if({canInfect}==true):c:role remove {user(id)} {infectedRole}}}\n\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({canInfect}==true):c:temprole {user(id)} {cdRole} {cooldown}}}\n\n{=(COMMENT):Output management. Displays the message corresponding to the current situation. Adapts to the player's behavior.}\n{=(embed.title):🧪 Infection Game ☣}\n{=(embed.description):{if({isUserInfected}==false):{msg.notInfected}|{if({isUserTarget}==true):{msg.noMention}|{if({isCooldown}==true):{msg.cd}|{if({isTargetBot}==true):{msg.targetIsBot}|{if({isTargetInfected}==true):{msg.alreadyInfected}|{msg.didInfect}}}}}}}\n{=(embed.footer):{prefix}{tagName} @target}\n\n{=(COMMENT):Sets the embed color to green.}\n{embed(color):#00D10F}\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, \"title\": \"{embed.title}\", \"description\": \"{embed.description}\"}",
"last_fetched": "2026-10-20T17:13:37.691Z"
}