sleep
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 joins the cuddlepile {rand:doing an inviting gesture~}~xuserx pounces on the bed~xuserx dives headfirst into the blankets}
|{rand:
xuserx {rand:goes to sleep~sleeps} on xtargetx~
xuserx joins xtargetx in the bed~
xuserx steals a bit of blanket space from 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": 1594021,
"created_at": "2022-11-14T15:06:35.000Z",
"tag_name": "sleep",
"nsfw": false,
"owner_id": "945560918874550293",
"uses": 2,
"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 joins the cuddlepile {rand:doing an inviting gesture~}~xuserx pounces on the bed~xuserx dives headfirst into the blankets}\n|{rand:\nxuserx {rand:goes to sleep~sleeps} on xtargetx~\nxuserx joins xtargetx in the bed~\nxuserx steals a bit of blanket space from xtargetx\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:03:45.680Z"
}