liberate

Privateunrated

Content

85 lines
{=(COMMENT):ROLE ID GUIDE:
WIZARDS - 350340603155841024
Questmaster - 738520288110575719
Archwizards - 350339695206596608
Mods - 582995782538362901
CC MOD - 711078823126499379
Paladins - 745127936545259662
Partner CC - 788865565867245569
Affiliate CC - 788864958619582476
Regular CC - 520669656542085130
Content Creator Mascot - 762767653751881738
Quest Crusher - 770732443279818782
Compmaster - 743579226783088811
Ranger - 745127872175276109
Atificier - 745127815560822855
Bard - 745127430166937733
Server OG - 804173111788437515
The Arcane - 642440801426604085
Server Enchanter - 616007658960453635
Bug Hunta - 812047089995087932
The resistance - 963854875811274802}

{=(COMMENT):Force people to use command in #the-resistance 963843413055270962}
{require(Nothing to see here... certainly not anyone disobeying in <#963843413055270962>. The hidden code to destroy EGG ORG certainly isn't real! ):963843413055270962}

{=(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):liberate}

{=(cooldown):5m}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(cdFormat):{replace(m, minutes):{cooldown}}}

{=(COMMENT):Error messages configuration.}
{=(msg.noMention):YES! You have it now, we can save everyone but you need to mention who you are planning to save! Try again {user(mention)}!}
{=(msg.notLiberated):What even is that command?! Surely you are not trying to disobey EGG ORG, {user(mention)}! Certainly no-one will reach out to you now you have made this command}
{=(msg.cd): {user(mention)} - We cannot recruit new members to the resistance that quickly! You must wait **{cdFormat}** before you can recruit again, so Spokesperson does not discover us!!}
{=(msg.didLiberate):{user(mention)}, you successfully liberated {target(mention)} to the Resistance with an excellence rating of **{range:1-1000000}**. Make sure they know about the code and about liberating others sympathetic to our cause!
You'll have to wait {cdFormat} before liberating again! **Pablo Forever**!}
{=(msg.alreadyLiberated):{target(mention)} is already liberated, {user(mention)}, get back out there and find more people to save!}
{=(msg.targetIsBot):{target(mention)} It's too dangerous to liberate more of  the **EGG ORG** Elite, we don't know who can be trusted! }

{=(COMMENT):Roles IDs - CHANGE WHEN LAUNCHED}
{=(cdRole):824334108695986248}
{=(liberatedRole):963854875811274802}
{=(COMMENT):Put below the role ID that all the bots in your server have. It will be used to ensure no member tries to recruit bots, as they can't recruit anybody after that, obviously.}
{=(botRole):350340603155841024}

{=(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 recruited.}
{=(isUserLiberated):{contains({liberatedRole}):{user(roleids)}}}
{=(COMMENT):Checks if the mentioned target is already recruited.}
{=(isTargetLiberated):{contains({liberatedRole}):{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 recruit by meeting the proper conditions.}
{=(canLiberate):{all({isUserTarget}==false|{isCooldown}==false|{isTargetLiberated}==false|{isUserLiberated}==true|{isTargetBot}==false):true|false}}

{=(COMMENT):Command execution}
{=():}
{=(COMMENT):Recruits the target by transferring their role to them.}
{{if({canLiberate}==true):c:role add {target(id)} {liberatedRole}}}

{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({canLiberate}==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): 🥚Liberate Eggs from EGG ORG's grasp 🥚 }
{=(embed.description):{if({isUserLiberated}==false):{msg.notLiberated}|{if({isUserTarget}==true):{msg.noMention}|{if({isCooldown}==true):{msg.cd}|{if({isTargetBot}==true):{msg.targetIsBot}|{if({isTargetLiberated}==true):{msg.alreadyLiberated}|{msg.didLiberate}}}}}}}
{=(embed.footer):{prefix}{tagName} @target}

{=(COMMENT):Sets the embed color to Wizard Blue.}
{embed(color):#0000FF}

{=(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, "title": "{embed.title}", "description": "{embed.description}"}
Raw JSON
{
  "id": 1369525,
  "created_at": "2022-04-13T17:59:40.000Z",
  "tag_name": "liberate",
  "nsfw": false,
  "owner_id": "474006005840216069",
  "uses": 7575,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "350339162177798154",
  "sharer": "474006005840216069",
  "content": "{=(COMMENT):ROLE ID GUIDE:\nWIZARDS - 350340603155841024\nQuestmaster - 738520288110575719\nArchwizards - 350339695206596608\nMods - 582995782538362901\nCC MOD - 711078823126499379\nPaladins - 745127936545259662\nPartner CC - 788865565867245569\nAffiliate CC - 788864958619582476\nRegular CC - 520669656542085130\nContent Creator Mascot - 762767653751881738\nQuest Crusher - 770732443279818782\nCompmaster - 743579226783088811\nRanger - 745127872175276109\nAtificier - 745127815560822855\nBard - 745127430166937733\nServer OG - 804173111788437515\nThe Arcane - 642440801426604085\nServer Enchanter - 616007658960453635\nBug Hunta - 812047089995087932\nThe resistance - 963854875811274802}\n\n{=(COMMENT):Force people to use command in #the-resistance 963843413055270962}\n{require(Nothing to see here... certainly not anyone disobeying in <#963843413055270962>. The hidden code to destroy EGG ORG certainly isn't real! ):963843413055270962}\n\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):liberate}\n\n{=(cooldown):5m}\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):YES! You have it now, we can save everyone but you need to mention who you are planning to save! Try again {user(mention)}!}\n{=(msg.notLiberated):What even is that command?! Surely you are not trying to disobey EGG ORG, {user(mention)}! Certainly no-one will reach out to you now you have made this command}\n{=(msg.cd): {user(mention)} - We cannot recruit new members to the resistance that quickly! You must wait **{cdFormat}** before you can recruit again, so Spokesperson does not discover us!!}\n{=(msg.didLiberate):{user(mention)}, you successfully liberated {target(mention)} to the Resistance with an excellence rating of **{range:1-1000000}**. Make sure they know about the code and about liberating others sympathetic to our cause!\nYou'll have to wait {cdFormat} before liberating again! **Pablo Forever**!}\n{=(msg.alreadyLiberated):{target(mention)} is already liberated, {user(mention)}, get back out there and find more people to save!}\n{=(msg.targetIsBot):{target(mention)} It's too dangerous to liberate more of  the **EGG ORG** Elite, we don't know who can be trusted! }\n\n{=(COMMENT):Roles IDs - CHANGE WHEN LAUNCHED}\n{=(cdRole):824334108695986248}\n{=(liberatedRole):963854875811274802}\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 recruit bots, as they can't recruit anybody after that, obviously.}\n{=(botRole):350340603155841024}\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 recruited.}\n{=(isUserLiberated):{contains({liberatedRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the mentioned target is already recruited.}\n{=(isTargetLiberated):{contains({liberatedRole}):{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 recruit by meeting the proper conditions.}\n{=(canLiberate):{all({isUserTarget}==false|{isCooldown}==false|{isTargetLiberated}==false|{isUserLiberated}==true|{isTargetBot}==false):true|false}}\n\n{=(COMMENT):Command execution}\n{=():}\n{=(COMMENT):Recruits the target by transferring their role to them.}\n{{if({canLiberate}==true):c:role add {target(id)} {liberatedRole}}}\n\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({canLiberate}==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): 🥚Liberate Eggs from EGG ORG's grasp 🥚 }\n{=(embed.description):{if({isUserLiberated}==false):{msg.notLiberated}|{if({isUserTarget}==true):{msg.noMention}|{if({isCooldown}==true):{msg.cd}|{if({isTargetBot}==true):{msg.targetIsBot}|{if({isTargetLiberated}==true):{msg.alreadyLiberated}|{msg.didLiberate}}}}}}}\n{=(embed.footer):{prefix}{tagName} @target}\n\n{=(COMMENT):Sets the embed color to Wizard Blue.}\n{embed(color):#0000FF}\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, \"title\": \"{embed.title}\", \"description\": \"{embed.description}\"}",
  "last_fetched": "2026-10-20T18:44:44.171Z"
}