blanket

Privateunrated

Content

31 lines
{=(COMMENT):Figure out our target. Use args and replace any mention with text}
{=(Target):{if(!={args(1+)}):{args(1+)}|}}
{=(Target):{replace({target(mention)},{target}):{Target}}}
{=(LTarget):{lower:{Target}}} 

{=(COMMENT):Check if we are mentioning ourself}
{=(User2):{urlencode:{user}}}
{=(Target3):{urlencode:{Target}}}
{=(BSelf):{in({User2}):{Target3}}}

{=(COMMENT):Check if the args are, in fact, empty}
{=(Target2):{replace(==,):{Target}}}
{=(Target2):{replace(!=,):{Target2}}}
{=(Target2):{replace(:,):{Target2}}}
{=(BTarget):{if(=={Target2}):false}}
{=(BTarget):{if(=={BTarget}):true|{BTarget}}}

{=(COMMENT):Set output variable depending on self, blank or filled. Note use xuserx for self, xtargetx for target as a hack for sanitizing}
{=(messagethingy):{any(false=={BTarget}|true=={BSelf}):{rand:xuserx wants to be wrapped up~xuserx is asking if anyone have a blankey~xuserx wants a blanket}
|{rand:
xuserx wraps xtargetx {rand:tightly~gently~forcefully} in a blanke{rand:t~y}~
xuserx makes a burrito out of xtargetx~
xuserx tightly packs xtargetx in a blanke{rand:t~y}
}}}
 
{=(COMMENT):Finally, because the bot is challenged when it comes to trusting users, change the output to use "unsafe" names}
{=(messagethingy):{replace(xuserx,{user}):{messagethingy}}}
{=(messagethingy):{replace(xtargetx,{Target}):{messagethingy}}}

{=(COMMENT):Set the color of the embed for fluff}
{embed(color): {user(color)}}

Embed

1 line
{"color": 5198940, "title": "{messagethingy}"}
Raw JSON
{
  "id": 1576996,
  "created_at": "2022-10-22T19:28:52.000Z",
  "tag_name": "blanket",
  "nsfw": false,
  "owner_id": "945560918874550293",
  "uses": 3,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "956360973147590767",
  "sharer": "945560918874550293",
  "content": "{=(COMMENT):Figure out our target. Use args and replace any mention with text}\n{=(Target):{if(!={args(1+)}):{args(1+)}|}}\n{=(Target):{replace({target(mention)},{target}):{Target}}}\n{=(LTarget):{lower:{Target}}} \n\n{=(COMMENT):Check if we are mentioning ourself}\n{=(User2):{urlencode:{user}}}\n{=(Target3):{urlencode:{Target}}}\n{=(BSelf):{in({User2}):{Target3}}}\n\n{=(COMMENT):Check if the args are, in fact, empty}\n{=(Target2):{replace(==,):{Target}}}\n{=(Target2):{replace(!=,):{Target2}}}\n{=(Target2):{replace(:,):{Target2}}}\n{=(BTarget):{if(=={Target2}):false}}\n{=(BTarget):{if(=={BTarget}):true|{BTarget}}}\n\n{=(COMMENT):Set output variable depending on self, blank or filled. Note use xuserx for self, xtargetx for target as a hack for sanitizing}\n{=(messagethingy):{any(false=={BTarget}|true=={BSelf}):{rand:xuserx wants to be wrapped up~xuserx is asking if anyone have a blankey~xuserx wants a blanket}\n|{rand:\nxuserx wraps xtargetx {rand:tightly~gently~forcefully} in a blanke{rand:t~y}~\nxuserx makes a burrito out of xtargetx~\nxuserx tightly packs xtargetx in a blanke{rand:t~y}\n}}}\n \n{=(COMMENT):Finally, because the bot is challenged when it comes to trusting users, change the output to use \"unsafe\" names}\n{=(messagethingy):{replace(xuserx,{user}):{messagethingy}}}\n{=(messagethingy):{replace(xtargetx,{Target}):{messagethingy}}}\n\n{=(COMMENT):Set the color of the embed for fluff}\n{embed(color): {user(color)}}",
  "embed": "{\"color\": 5198940, \"title\": \"{messagethingy}\"}",
  "last_fetched": "2026-10-20T19:02:36.093Z"
}