infect
Privateunrated
Content
54 lines{=(COMMENT):General configuration}
{=(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 have successfully transferred your infection to {target(mention)}! They’ll have to wait {cdFormat} before passing it to someone else!}
{=(msg.alreadyInfected):{target(mention)} is currently already infected, {user(mention)}!}
{=(msg.targetIsBot):Imagine trying to infect {target(mention)}... He’s a bot and is therefore immune to mortal illnesses, {user(mention)}!}
{=(COMMENT):Roles IDs}
{=(cdRole):815930384587423784}
{=(infectedRole):814488283610349649}
{=(botRole):803437142596124692}
{=(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 target of the tag.}
{{if({canInfect}==true):c:temprole {target(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 and bypasses role management perms}
{override}
{silence}Embed
1 line{"color": 53519, "title": "{embed.title}", "footer": {"text": "For rules: ?infecthelp | Who’s currently tagged: ?infected"}, "description": "{embed.description}"}Raw JSON
{
"id": 644087,
"created_at": "2021-03-01T12:52:00.000Z",
"tag_name": "infect",
"nsfw": false,
"owner_id": "662407182909964288",
"uses": 573,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "760554279249117264",
"sharer": "662407182909964288",
"content": "{=(COMMENT):General configuration}\n{=(prefix):?}\n{=(tagName):infect}\n{=(cooldown):15m}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(cdFormat):{replace(m, minutes):{cooldown}}}\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 have successfully transferred your infection to {target(mention)}! They’ll have to wait {cdFormat} before passing it to someone else!}\n{=(msg.alreadyInfected):{target(mention)} is currently already infected, {user(mention)}!}\n{=(msg.targetIsBot):Imagine trying to infect {target(mention)}... He’s a bot and is therefore immune to mortal illnesses, {user(mention)}!}\n\n{=(COMMENT):Roles IDs}\n{=(cdRole):815930384587423784}\n{=(infectedRole):814488283610349649}\n{=(botRole):803437142596124692}\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 target of the tag.}\n{{if({canInfect}==true):c:temprole {target(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 and bypasses role management perms}\n{override}\n{silence}",
"embed": "{\"color\": 53519, \"title\": \"{embed.title}\", \"footer\": {\"text\": \"For rules: ?infecthelp | Who’s currently tagged: ?infected\"}, \"description\": \"{embed.description}\"}",
"last_fetched": "2026-10-21T00:31:12.436Z"
}