apf_commented

Warning: This variant of the april fools tag has additional comments added to the code and works as is for the environment it's meant to be used in! Do not add this to any other server under any circumstance. It will not work. At worst, you'll just break stuff. If you're not a member of Eevee's Mystery Dungeon, you can safely ignore this tag, including this description. Now that we got formalities out of the way, if you read this you just found the commented version of ?sl, AF Edition. "AF" stands for April Fools, implying this tag is edited to intentionally sabotage the basic function of ?sl. This is meant to give an insight as to how the tag works and what was changed in detail. If you only need the short version: The tag was overhauled entirely and what it once was is likely unrecognizable between the pile of additional data and code. Due to this the scope of this is less to list what was changed, but simply what it does. For details as to how this tag exactly works, check the content section as comments are to be found there! Everything that has the structure {=(COMMENT):[content]} is a comment, otherwise it's part of the tag itself.

Privateunrated

Content

75 lines
{=(COMMENT0):This is only meant to deter people from deleting this tag or swapping it out with the original.}
{=(APRIL_FOOLS):DO NOT DELETE OR REPLACE UNTIL APRIL 2ND, 07:30 UTC! (That is 3:30 AM EST in case Americans don't know what UTC or the 24 hour format is)}

{=(COMMENT1):Set the meta blocks accordingly.}
{=(COMMENT1_1):We want reponses from commands to not appear and we want the default output to be the DMs of the user, why we'll see later. The dm block being added also is the first change to the standard tag that has an effect on the function.}
{silent}
{dm}

{=(COMMENT1_2):Define the required and blacklisted roles. Nothing much, just changed the flavor text when somebody without proper clearance tries to use this command. To screw around with Eev and Roxy a bit, we lock them out from this command.}
{require(You need to be staff to build 5G towers and participate in roleplay.):385965575773618190,385965306696433668}
{blacklist(https://media.tenor.com/cx6d8dF-R1UAAAAC/gordon-ramsay-fuck-off.gif):385979606194454538,629428815256485909}

{=(COMMENT2):Define variables and data needed for function.}
{=(COMMENT2_1):The standard empty variable that is needed every time we execute a conditional command or react block. This tag uses a conditional react block, so it's needed.}
{=():}

{=(COMMENT2_2):Commonly used user IDs within this tag are found here in order to save some space.}
{=(Eev):312445909059502081}
{=(Rhulk):1056667503188787320}
{=(Zapped):587929559132012564}

{=(COMMENT2_3):This table holds special mute lengths for individual users. Of special note are Delph and {user(id)}, the former because it's the only entry that has it's length be calcuclated based off how often this tag was used. And the latter because it's the only one with a dynamic target, that always being the user of this command.}
{=(num_uses):{m:trunc({uses}-650)}}
{=(length_data):69 284484175166177280 {if({num_uses}>=64):250*10^9|60*2^({num_uses}/2)} {user(id)} {range:36-169} 451392438301622274 906 162802015351603200 906 274754990042513410 906 348834383832023042 91 386737549768392724 91 {Rhulk} 36 357571765402206210 23 {Eev} 169 431412908258492436 111 {Zapped} -721}

{=(COMMENT2_4):The autoresponse data used within this tag. You likely witnessed a few of those already, so I'll just name you all payloads that exist; The triggers this tag can add are: "food", "source", "game", "kill", "?zm", "music", "sheep" and "not".}
{=(trigger_data):s "food" Don't forget your daily dose of minerals! https://tenor.com/view/brick-gif-18431407~s "source" https://media.tenor.com/v6Awsd0YO7IAAAAd/metal-gear-rising-metal-gear-rising-revengeance.gif~s "game" Today's sponsor of EMD is **RAID SHADOW LEGENDS**! πŸ‘ πŸ‘ https://tenor.com/view/raid-shadow-legends-raid-gif-20940490~s "kill" Omae wa mou shindeiru! https://tenor.com/view/death-note-gif-25260320~s "?zm" YESHENLOIAMHERE https://tenor.com/view/imposter-detected-by-ip10-gif-23323619~s "music" https://www.youtube.com/watch?v=VV8TWGsSiBQ~s "sheep" 6 Tacos with lamb coming right up! https://i.imgur.com/XVLDOWm.png~{if({m:trunc({strf:%-M}%2)}==0):s "not" Why not? https://i.imgur.com/KCljpK9.jpg|- not}}

{=(COMMENT2_5):This holds response data for each type of response that exists. The reponse types are: 0 = Works as intended, 1 = Targets Eev (MUHAHAHA!), 2 = Targets Rhulk, 3 = Targets the user, 4 = The tag doesn't work at all (uses no image, overrides type 0-2), 5 = The user tried to target Zapped (overrides type 0 and 4)}
{=(resp0):https://i.imgur.com/vPOPWTo.png~https://i.imgur.com/XYxjdWR.png~https://i.imgur.com/k7wz69v.png~https://i.imgur.com/OhWEiQF.png~https://i.imgur.com/pOV7mRh.png~https://i.imgur.com/dZKhFsE.png~https://i.imgur.com/gl7Rbh6.png~https://i.imgur.com/dHSGuBl.png~https://i.imgur.com/lGnVMuv.png~https://i.imgur.com/FuYokju.png~https://i.imgur.com/6rbamK5.png~https://i.imgur.com/N4b0SVB.png~https://i.imgur.com/45R2ISm.png~https://i.imgur.com/iZhOBJq.png~https://i.imgur.com/KgHu3bm.png~https://i.imgur.com/vSmFbYz.png~https://i.imgur.com/Ukhb3xZ.png~https://i.imgur.com/TyQozmx.png~https://i.imgur.com/6kBV1He.png~https://i.imgur.com/1vqPe7Y.png~https://i.imgur.com/cUVxxW9.png~https://i.imgur.com/8q3Ifd5.png}
{=(resp1):https://media.tenor.com/8CwBRh205rYAAAAd/how-to-make-the-perfect-pizza-how-to-basic.gif~https://i.imgur.com/3Lgvnu9.png~https://i.imgur.com/3a1c0Er.png~https://media.tenor.com/FkYwdpGbyUMAAAAC/hamburgers-food.gif}
{=(resp2):http://www.tribune242.com/news/2022/sep/16/jailed-stealing-6-hot-dog-buns-church/~https://i.imgur.com/Ej2se0F.png~https://i.imgur.com/liPDPDO.png}
{=(resp3):https://i.redd.it/8wnn96gasb931.jpg~https://i.imgur.com/sx5yoxw.png~https://i.imgur.com/cAXhdQp.jpg~https://media.tenor.com/eEs1jRy5UXgAAAAC/house-explosion.gif~https://media.tenor.com/hDINLNjKDmMAAAAd/doom-slayer-doom.gif~https://tenor.com/view/thor-destroyer-oven-monster-gif-10513806}
{=(resp5):https://media.tenor.com/zZliaEsuQMIAAAAC/pokemon-arceus-oshawatt-hyperbeam.gif~https://media.tenor.com/tSKpfvLtdbAAAAAC/no-emperor.gif~https://media.tenor.com/tt-UqGHErZgAAAAC/standing-here-i-realize.gif~https://media.tenor.com/7VmbZpE0lnwAAAAd/bonk.gif}

{=(COMMENT2_6):This holds emote data for the conditional react block, holding each emote used for a non-zero response type.}
{=(react_emotes):0~<:EevAngry:700078128701112410>~<:FeelsBaguetteMan:710047098711834705>~<:ShinyVapStare2:724863483019001857>~<:upsidedowncarl:760881530997440513>~<:MegaAmphStare:827117316050518017>}

{=(COMMENT3):This holds the actual code section. It's not too much when you see this...}
{=(COMMENT3_1):Find the target intended by the user. Knowing mods on EMD, this 99 % of the time is a mention, so we use {target(id)} to find the target no matter where in the argument list it's standing. Should the 1 % happen and Opal uses this to only supply an ID, simply take the 1st word in the argument list as fallback.}
{=(in_target):{if({target(id)}!={user(id)}):{target(id)}|{1}}}

{=(COMMENT3_2):Throw the intended target in a pool of other targets. It has a 50 % chance to pick the intended target, 25 % to pick the user of the command, 15 % to pick Eev and 10 % to pick Rhulk as the target. If the intended target is picked, check if the target is Zapped; If it is, redirect to the user as the target.}
{=(ac_target):{#:3|{Eev}~2|{Rhulk}~10|{in_target}~5|{user(id)}}}
{=(ac_trgt):{if({ac_target}=={Zapped}):{user(id)}|{ac_target}}}

{=(COMMENT3_3):Try to find the correct mute length for the picked target. Add 4x181 seconds if the picked target would've been Zapped. {ac_target} serves as a flag to indicate this. Further, give it a 10 % chance to set the mute length to 2 seconds if the target in {ac_trgt} isn't the user.}
{=(length_type):{index({ac_trgt}):{length_data}}}
{=(mute_length):{all({range:1-10}==1|{user(id)}!={ac_trgt}):2|{m:trunc({cycle({m:trunc({length_type}+1)}):{join(~):{length_data}}}+{if({ac_target}=={Zapped}):724|0})}}}

{=(COMMENT3_4):This is the main payload, muting the determined target for the specificied length.}
{c:temprole {ac_trgt} {mute_length}s Muted}

{=(COMMENT3_5):Determine the response type as specified by {COMMENT2_5} (see above) and pick an emote to react to the invokation with when applicable.}
{=(res_type):{if({mute_length}==2):4|{if({ac_target}=={Zapped}):5|{index({ac_trgt}):{in_target} {Eev} {Rhulk} {user(id)}}}}}
{{if({res_type}>0):reactu: {list({res_type}):{react_emotes}}}}

{=(COMMENT3_6):Add one of the autoresponses specified by {trigger_data}. It does this every time, so the more often this tag is used, the more chaotic chat becomes. At least that is the intent behind this. All triggers added this way use the strict type btw to prevent them from going off all that often, because even I know limits.}
{c:ar {#:{trigger_data}}}

{=(COMMENT4):This section prints the actual output of the tag.}
{=(COMMENT4_1):Due to us using a dm block to redirect a possible response to the user of this tag, we need to use an echo command to have a response in the channel it was used in. It'll do standard stuff, as in display the length the mute is for and a response image. Should the mute length exceed 3 minutes, print who was muted. If the reponse type is 4, it'll print a message ?sl outputted when Eev realized she broke it entirely on March 15th, 2023.
If it's after April 1st, 2023 21:30 UTC, also print the link to this site.}
{c:echo <#{channel(id)}> *Muted {if({mute_length}>180):<@{ac_trgt}> }for **{mute_length}** seconds!*
 
{if({res_type}==4):*We are reaching out to you about your car's extended warranty.*
 
~~Eev broke the code because she misunderstood some mechanics of Carlbot. The command will be fixed later **tomorrow**.~~ <a:ohno:649539212911181855>|{#:{resp{res_type}}}}{if({unix}>1680384599):
(In case there is interest for the commented version of this tag's function: <https://carl.gg/t/1701569> )}}

{=(COMMENT4_2):If the response type is 3, 4 or 5, inform the mod via DM that the tag backfired and there is nothing to worry about.}
{or({res_type}>2|{contains(help):{lower:{args}}}==true):**This tag is heavily modified and might not do what you want it to do, like it did just now!**
No worries however, this shall only be the case for a very limited time (mostly April 1st, if Eev lets it slide for that long that is).
 
In case there is any interest into the insides of the tag, stay tuned! You might see a share link eventually...}
Raw JSON
{
  "id": 1701569,
  "created_at": "2023-03-31T08:58:46.000Z",
  "tag_name": "apf_commented",
  "nsfw": false,
  "owner_id": "587929559132012564",
  "uses": 0,
  "description": "Warning: This variant of the april fools tag has additional comments added to the code and works as is for the environment it's meant to be used in!\nDo not add this to any other server under any circumstance. It will not work. At worst, you'll just break stuff.\nIf you're not a member of Eevee's Mystery Dungeon, you can safely ignore this tag, including this description.\n\nNow that we got formalities out of the way, if you read this you just found the commented version of ?sl, AF Edition. \"AF\" stands for April Fools, implying this tag is edited to intentionally sabotage the basic function of ?sl.\nThis is meant to give an insight as to how the tag works and what was changed in detail.\nIf you only need the short version: The tag was overhauled entirely and what it once was is likely unrecognizable between the pile of additional data and code.\nDue to this the scope of this is less to list what was changed, but simply what it does.\n\nFor details as to how this tag exactly works, check the content section as comments are to be found there! Everything that has the structure {=(COMMENT):[content]} is a comment, otherwise it's part of the tag itself.",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "865158783881314314",
  "sharer": "587929559132012564",
  "content": "{=(COMMENT0):This is only meant to deter people from deleting this tag or swapping it out with the original.}\n{=(APRIL_FOOLS):DO NOT DELETE OR REPLACE UNTIL APRIL 2ND, 07:30 UTC! (That is 3:30 AM EST in case Americans don't know what UTC or the 24 hour format is)}\n\n{=(COMMENT1):Set the meta blocks accordingly.}\n{=(COMMENT1_1):We want reponses from commands to not appear and we want the default output to be the DMs of the user, why we'll see later. The dm block being added also is the first change to the standard tag that has an effect on the function.}\n{silent}\n{dm}\n\n{=(COMMENT1_2):Define the required and blacklisted roles. Nothing much, just changed the flavor text when somebody without proper clearance tries to use this command. To screw around with Eev and Roxy a bit, we lock them out from this command.}\n{require(You need to be staff to build 5G towers and participate in roleplay.):385965575773618190,385965306696433668}\n{blacklist(https://media.tenor.com/cx6d8dF-R1UAAAAC/gordon-ramsay-fuck-off.gif):385979606194454538,629428815256485909}\n\n{=(COMMENT2):Define variables and data needed for function.}\n{=(COMMENT2_1):The standard empty variable that is needed every time we execute a conditional command or react block. This tag uses a conditional react block, so it's needed.}\n{=():}\n\n{=(COMMENT2_2):Commonly used user IDs within this tag are found here in order to save some space.}\n{=(Eev):312445909059502081}\n{=(Rhulk):1056667503188787320}\n{=(Zapped):587929559132012564}\n\n{=(COMMENT2_3):This table holds special mute lengths for individual users. Of special note are Delph and {user(id)}, the former because it's the only entry that has it's length be calcuclated based off how often this tag was used. And the latter because it's the only one with a dynamic target, that always being the user of this command.}\n{=(num_uses):{m:trunc({uses}-650)}}\n{=(length_data):69 284484175166177280 {if({num_uses}>=64):250*10^9|60*2^({num_uses}/2)} {user(id)} {range:36-169} 451392438301622274 906 162802015351603200 906 274754990042513410 906 348834383832023042 91 386737549768392724 91 {Rhulk} 36 357571765402206210 23 {Eev} 169 431412908258492436 111 {Zapped} -721}\n\n{=(COMMENT2_4):The autoresponse data used within this tag. You likely witnessed a few of those already, so I'll just name you all payloads that exist; The triggers this tag can add are: \"food\", \"source\", \"game\", \"kill\", \"?zm\", \"music\", \"sheep\" and \"not\".}\n{=(trigger_data):s \"food\" Don't forget your daily dose of minerals! https://tenor.com/view/brick-gif-18431407~s \"source\" https://media.tenor.com/v6Awsd0YO7IAAAAd/metal-gear-rising-metal-gear-rising-revengeance.gif~s \"game\" Today's sponsor of EMD is **RAID SHADOW LEGENDS**! πŸ‘ πŸ‘ https://tenor.com/view/raid-shadow-legends-raid-gif-20940490~s \"kill\" Omae wa mou shindeiru! https://tenor.com/view/death-note-gif-25260320~s \"?zm\" YESHENLOIAMHERE https://tenor.com/view/imposter-detected-by-ip10-gif-23323619~s \"music\" https://www.youtube.com/watch?v=VV8TWGsSiBQ~s \"sheep\" 6 Tacos with lamb coming right up! https://i.imgur.com/XVLDOWm.png~{if({m:trunc({strf:%-M}%2)}==0):s \"not\" Why not? https://i.imgur.com/KCljpK9.jpg|- not}}\n\n{=(COMMENT2_5):This holds response data for each type of response that exists. The reponse types are: 0 = Works as intended, 1 = Targets Eev (MUHAHAHA!), 2 = Targets Rhulk, 3 = Targets the user, 4 = The tag doesn't work at all (uses no image, overrides type 0-2), 5 = The user tried to target Zapped (overrides type 0 and 4)}\n{=(resp0):https://i.imgur.com/vPOPWTo.png~https://i.imgur.com/XYxjdWR.png~https://i.imgur.com/k7wz69v.png~https://i.imgur.com/OhWEiQF.png~https://i.imgur.com/pOV7mRh.png~https://i.imgur.com/dZKhFsE.png~https://i.imgur.com/gl7Rbh6.png~https://i.imgur.com/dHSGuBl.png~https://i.imgur.com/lGnVMuv.png~https://i.imgur.com/FuYokju.png~https://i.imgur.com/6rbamK5.png~https://i.imgur.com/N4b0SVB.png~https://i.imgur.com/45R2ISm.png~https://i.imgur.com/iZhOBJq.png~https://i.imgur.com/KgHu3bm.png~https://i.imgur.com/vSmFbYz.png~https://i.imgur.com/Ukhb3xZ.png~https://i.imgur.com/TyQozmx.png~https://i.imgur.com/6kBV1He.png~https://i.imgur.com/1vqPe7Y.png~https://i.imgur.com/cUVxxW9.png~https://i.imgur.com/8q3Ifd5.png}\n{=(resp1):https://media.tenor.com/8CwBRh205rYAAAAd/how-to-make-the-perfect-pizza-how-to-basic.gif~https://i.imgur.com/3Lgvnu9.png~https://i.imgur.com/3a1c0Er.png~https://media.tenor.com/FkYwdpGbyUMAAAAC/hamburgers-food.gif}\n{=(resp2):http://www.tribune242.com/news/2022/sep/16/jailed-stealing-6-hot-dog-buns-church/~https://i.imgur.com/Ej2se0F.png~https://i.imgur.com/liPDPDO.png}\n{=(resp3):https://i.redd.it/8wnn96gasb931.jpg~https://i.imgur.com/sx5yoxw.png~https://i.imgur.com/cAXhdQp.jpg~https://media.tenor.com/eEs1jRy5UXgAAAAC/house-explosion.gif~https://media.tenor.com/hDINLNjKDmMAAAAd/doom-slayer-doom.gif~https://tenor.com/view/thor-destroyer-oven-monster-gif-10513806}\n{=(resp5):https://media.tenor.com/zZliaEsuQMIAAAAC/pokemon-arceus-oshawatt-hyperbeam.gif~https://media.tenor.com/tSKpfvLtdbAAAAAC/no-emperor.gif~https://media.tenor.com/tt-UqGHErZgAAAAC/standing-here-i-realize.gif~https://media.tenor.com/7VmbZpE0lnwAAAAd/bonk.gif}\n\n{=(COMMENT2_6):This holds emote data for the conditional react block, holding each emote used for a non-zero response type.}\n{=(react_emotes):0~<:EevAngry:700078128701112410>~<:FeelsBaguetteMan:710047098711834705>~<:ShinyVapStare2:724863483019001857>~<:upsidedowncarl:760881530997440513>~<:MegaAmphStare:827117316050518017>}\n\n{=(COMMENT3):This holds the actual code section. It's not too much when you see this...}\n{=(COMMENT3_1):Find the target intended by the user. Knowing mods on EMD, this 99 % of the time is a mention, so we use {target(id)} to find the target no matter where in the argument list it's standing. Should the 1 % happen and Opal uses this to only supply an ID, simply take the 1st word in the argument list as fallback.}\n{=(in_target):{if({target(id)}!={user(id)}):{target(id)}|{1}}}\n\n{=(COMMENT3_2):Throw the intended target in a pool of other targets. It has a 50 % chance to pick the intended target, 25 % to pick the user of the command, 15 % to pick Eev and 10 % to pick Rhulk as the target. If the intended target is picked, check if the target is Zapped; If it is, redirect to the user as the target.}\n{=(ac_target):{#:3|{Eev}~2|{Rhulk}~10|{in_target}~5|{user(id)}}}\n{=(ac_trgt):{if({ac_target}=={Zapped}):{user(id)}|{ac_target}}}\n\n{=(COMMENT3_3):Try to find the correct mute length for the picked target. Add 4x181 seconds if the picked target would've been Zapped. {ac_target} serves as a flag to indicate this. Further, give it a 10 % chance to set the mute length to 2 seconds if the target in {ac_trgt} isn't the user.}\n{=(length_type):{index({ac_trgt}):{length_data}}}\n{=(mute_length):{all({range:1-10}==1|{user(id)}!={ac_trgt}):2|{m:trunc({cycle({m:trunc({length_type}+1)}):{join(~):{length_data}}}+{if({ac_target}=={Zapped}):724|0})}}}\n\n{=(COMMENT3_4):This is the main payload, muting the determined target for the specificied length.}\n{c:temprole {ac_trgt} {mute_length}s Muted}\n\n{=(COMMENT3_5):Determine the response type as specified by {COMMENT2_5} (see above) and pick an emote to react to the invokation with when applicable.}\n{=(res_type):{if({mute_length}==2):4|{if({ac_target}=={Zapped}):5|{index({ac_trgt}):{in_target} {Eev} {Rhulk} {user(id)}}}}}\n{{if({res_type}>0):reactu: {list({res_type}):{react_emotes}}}}\n\n{=(COMMENT3_6):Add one of the autoresponses specified by {trigger_data}. It does this every time, so the more often this tag is used, the more chaotic chat becomes. At least that is the intent behind this. All triggers added this way use the strict type btw to prevent them from going off all that often, because even I know limits.}\n{c:ar {#:{trigger_data}}}\n\n{=(COMMENT4):This section prints the actual output of the tag.}\n{=(COMMENT4_1):Due to us using a dm block to redirect a possible response to the user of this tag, we need to use an echo command to have a response in the channel it was used in. It'll do standard stuff, as in display the length the mute is for and a response image. Should the mute length exceed 3 minutes, print who was muted. If the reponse type is 4, it'll print a message ?sl outputted when Eev realized she broke it entirely on March 15th, 2023.\nIf it's after April 1st, 2023 21:30 UTC, also print the link to this site.}\n{c:echo <#{channel(id)}> *Muted {if({mute_length}>180):<@{ac_trgt}> }for **{mute_length}** seconds!*\n \n{if({res_type}==4):*We are reaching out to you about your car's extended warranty.*\n \n~~Eev broke the code because she misunderstood some mechanics of Carlbot. The command will be fixed later **tomorrow**.~~ <a:ohno:649539212911181855>|{#:{resp{res_type}}}}{if({unix}>1680384599):\n(In case there is interest for the commented version of this tag's function: <https://carl.gg/t/1701569> )}}\n\n{=(COMMENT4_2):If the response type is 3, 4 or 5, inform the mod via DM that the tag backfired and there is nothing to worry about.}\n{or({res_type}>2|{contains(help):{lower:{args}}}==true):**This tag is heavily modified and might not do what you want it to do, like it did just now!**\nNo worries however, this shall only be the case for a very limited time (mostly April 1st, if Eev lets it slide for that long that is).\n \nIn case there is any interest into the insides of the tag, stay tuned! You might see a share link eventually...}",
  "embed": "{}",
  "last_fetched": "2026-10-20T19:12:48.183Z"
}