baguette

Privateunrated

Content

29 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 gets bonked by *the* baguette lead by a mystical force {rand:repeateadly~}}
|{rand:
xuserx {rand:bonks~whacks} xtargetx with *the* baguette
}}}
 
{=(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": 1599784,
  "created_at": "2022-11-21T17:42:08.000Z",
  "tag_name": "baguette",
  "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 gets bonked by *the* baguette lead by a mystical force {rand:repeateadly~}}\n|{rand:\nxuserx {rand:bonks~whacks} xtargetx with *the* baguette\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:04:34.455Z"
}