pat2

Privateunrated

Content

45 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 pet themselves~
xuserx wants headpats~
xuserx needs headpats~
xuserx is asking for headpats~
xuserx wants to feel subby~
xuserx is looking for a gentle ruffling
}
|{rand:
xuserx headpats xtargetx {rand:~gently~softly}~
xuserx ruffles xtargetx's fur ~
xuserx gently strokes xtargetx's mane
}}}

{=(LTarget):{lower:{Target}}} 
{=(imgurl):{if({Target}!=):
{if({in(remo):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/948618258473435226/980167248717168750/remogipet.gif}|
{any({in(kureshu):{LTarget}}==true|{in(kuteshu):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/951873199967178883/953541367357902918/c186e5d1-fe02-402d-8c9e-6cf6e92c7468.gif}|
{if({in(rekku):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/956361297379864597/1025224915818909747/rekku_pet.gif}|
{any({in(kaykay):{LTarget}}==true|{in(kayden):{LTarget}}==true|{in(kaydon):{LTarget}}==true):{rand:https://cdn.discordapp.com/attachments/943479419568263231/983682698210050098/979844327729688616.gif}|
}}}}}}

{=(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, "image": {"url": "{imgurl}"}, "title": "{messagethingy}"}
Raw JSON
{
  "id": 1483924,
  "created_at": "2022-07-18T18:57:35.000Z",
  "tag_name": "pat2",
  "nsfw": false,
  "owner_id": "945560918874550293",
  "uses": 68,
  "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:\nxuserx pet themselves~\nxuserx wants headpats~\nxuserx needs headpats~\nxuserx is asking for headpats~\nxuserx wants to feel subby~\nxuserx is looking for a gentle ruffling\n}\n|{rand:\nxuserx headpats xtargetx {rand:~gently~softly}~\nxuserx ruffles xtargetx's fur ~\nxuserx gently strokes xtargetx's mane\n}}}\n\n{=(LTarget):{lower:{Target}}} \n{=(imgurl):{if({Target}!=):\n{if({in(remo):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/948618258473435226/980167248717168750/remogipet.gif}|\n{any({in(kureshu):{LTarget}}==true|{in(kuteshu):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/951873199967178883/953541367357902918/c186e5d1-fe02-402d-8c9e-6cf6e92c7468.gif}|\n{if({in(rekku):{LTarget}}==true):{rand:https://media.discordapp.net/attachments/956361297379864597/1025224915818909747/rekku_pet.gif}|\n{any({in(kaykay):{LTarget}}==true|{in(kayden):{LTarget}}==true|{in(kaydon):{LTarget}}==true):{rand:https://cdn.discordapp.com/attachments/943479419568263231/983682698210050098/979844327729688616.gif}|\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{=(COMMENT):Set the color of the embed for fluff}\n{embed(color): {user(color)}}",
  "embed": "{\"color\": 5198940, \"image\": {\"url\": \"{imgurl}\"}, \"title\": \"{messagethingy}\"}",
  "last_fetched": "2026-10-20T18:54:36.237Z"
}