jam

Privateunrated

Content

32 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 eaten with jam~xuserx smears {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} on themself~xuserx wants some topping}
|{rand:
xuserx smears {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} over xtargetx~
xuserx generously applies {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} to xtargetx
}}}
 

{=(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": 1559611,
  "created_at": "2022-09-30T01:42:32.000Z",
  "tag_name": "jam",
  "nsfw": false,
  "owner_id": "945560918874550293",
  "uses": 16,
  "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\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 eaten with jam~xuserx smears {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} on themself~xuserx wants some topping}\n|{rand:\nxuserx smears {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} over xtargetx~\nxuserx generously applies {rand:Jam~Strawberry Jam~Peanutbutter~Nutella~Honey} to xtargetx\n}}}\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:00:46.964Z"
}