meditate

Private

Content

67 lines
{override}
{redirect:<#1074176039422546010>}
{=():}
{=(role.1):1018980459209838644}
{=(role.2):1018980362610802718}
{=(role.3):1018981676417822761}
{=(role.4):1018980548598841426}
{=(role.5):1064684826185183292}
{=(add):1075211188037746749}
{blacklist({user(mention)}, you are already meditating.):{add}}
{=(t):{lower:{replace(, ):{args(1)}}}}
{=(day):{if({m:sgn({index(d):{t}})}==1):{m:trunc({index(d):{t}}+1)}|9999}}
{=(hour):{if({m:sgn({index(h):{t}})}==1):{m:trunc({index(h):{t}}+1)}|9999}}
{=(min):{if({m:sgn({index(m):{t}})}==1):{m:trunc({index(m):{t}}+1)}|9999}}
{=(dDC):{in(d):{t(2+):d}}}
{=(hDC):{in(h):{t(2+):h}}}
{=(mDC):{in(m):{t(2+):m}}}
{=(allDC):{in(false false false):{dDC} {hDC} {mDC}}}
{=(vTC):{in(d):{t}} {in(h):{t}} {in(m):{t}}}
{=(vTC):{in(true):{vTC}}}
{=(vTP):{if(9999!={day}):{all({day}<{hour}|{hour}<={min}):true|false}|true} {all(9999!={day}|9999!={hour}):{all({day}<{hour}|{hour}<{min}):true|false}|true} {all(9999!={day}|9999!={hour}|9999!={min}):{all({day}<{hour}|{hour}<{min}):true|false}|true}}
{=(vT):{join():{replace(d,):{replace(h,):{replace(m,):{t}}}}}}
{=(vT):{if({m:sgn({vT})}==1):true|false}}
{=(vTP):{if(true=={vT}):{in(true true true):{vTP}}|true}}
{=(uC):{if({user(id)}=={target(id)}):true|false}}
{=(urid):{user(roleids)}}
{=(l1):{index(&$):{urid} &$}}
{=(nl1):{m:trunc({l1}-1)}}
{=(r1.i):{m:trunc({index({role.1}):{urid}}+1)}}
{=(r1):{if({m:sgn({r1.i})}==1):{if(1=={r1.i}):urid(2+)|{if({l1}=={r1.i}):urid(+{nl1})|urid(+{m:trunc({r1.i}-1)})~urid({m:trunc({r1.i}+1)}+)}}|urid}}
{=(r1C):{{list(1):{r1}}}}
{=(r1):{{list(0):{r1}}}{if(!={r1C(1)}): {{list(1):{r1}}}}}
{=(r2.i):{m:trunc({index({role.2}):{r1}}+1)}}
{=(l2):{index(&$):{r1} &$}}
{=(nl2):{m:trunc({l2}-1)}}
{=(r2):{if({m:sgn({r2.i})}==1):{if(1=={r2.i}):r1(2+)|{if({l2}=={r2.i}):r1(+{nl2})|r1(+{m:trunc({r2.i}-1)})~r1({m:trunc({r2.i}+1)}+)}}|r1}}
{=(r2C):{{list(1):{r2}}}}
{=(r2):{{list(0):{r2}}}{if(!={r2C(1)}): {{list(1):{r2}}}}}
{=(r3.i):{m:trunc({index({role.3}):{r2}}+1)}}
{=(l3):{index(&$):{r2} &$}}
{=(nl3):{m:trunc({l3}-1)}}
{=(r3):{if({m:sgn({r3.i})}==1):{if(1=={r3.i}):r2(2+)|{if({l3}=={r3.i}):r2(+{nl3})|r2(+{m:trunc({r3.i}-1)})~r2({m:trunc({r3.i}+1)}+)}}|r2}}
{=(r3C):{{list(1):{r3}}}}
{=(r3):{{list(0):{r3}}}{if(!={r3C(1)}): {{list(1):{r3}}}}}
{=(r4.i):{m:trunc({index({role.4}):{r3}}+1)}}
{=(l4):{index(&$):{r3} &$}}
{=(nl4):{m:trunc({l4}-1)}}
{=(r4):{if({m:sgn({r4.i})}==1):{if(1=={r4.i}):r3(2+)|{if({l4}=={r4.i}):r3(+{nl4})|r3(+{m:trunc({r4.i}-1)})~r3({m:trunc({r4.i}+1)}+)}}|r3}}
{=(r4C):{{list(1):{r4}}}}
{=(r4):{{list(0):{r4}}}{if(!={r4C(1)}): {{list(1):{r4}}}}}
{=(r5.i):{m:trunc({index({role.5}):{r4}}+1)}}
{=(l5):{index(&$):{r4} &$}}
{=(nl5):{m:trunc({l5}-1)}}
{=(r5):{if({m:sgn({r5.i})}==1):{if(1=={r5.i}):r4(2+)|{if({l5}=={r5.i}):r4(+{nl5})|r4(+{m:trunc({r5.i}-1)})~r4({m:trunc({r5.i}+1)}+)}}|r4}}
{=(r5C):{{list(1):{r5}}}}
{=(r5):{{list(0):{r5}}}{if(!={r5C(1)}): {{list(1):{r5}}}}}
{=(rem):{if(!={r5(1)}):-{join( -):{r5}}}}
{=(rC):{if(!={rem(1)}):true|false}}
{=(aC):{in(true true true true true):{allDC} {vTC} {vTP} {vT} {uC}}}
{{all(true=={aC}|true=={rC}):c:temprole c {user(id)} {join():{t}} +{add} {rem}}}
{{all(true=={aC}|false=={rC}):c:temprole c {user(id)} {join():{t}} +{add}}}
{{all(false=={aC}|=={args(1)}|true=={rC}):c:temprole c {user(id)} 1h +{add} {rem}}}
{{all(false=={aC}|=={args(1)}|false=={rC}):c:temprole c {user(id)} 1h +{add}}}
{silence}
{{all(false=={aC}|!={args(1)}):embed(color):#D0021B|embed(color):#fcb0f6}}
{=(rR):<@&{join(>, <@&):{r5}}>}
{=(none):**None.**}

Embed

1 line
{"color": 16560374, "title": "Self Meditation", "author": {"name": "{user}", "icon_url": "{user(avatar)}"}, "fields": [{"name": "Roles Temporarily Removed.", "value": "{{all(true=={aC}|true=={rC}):rR|{all(=={args(1)}|false=={aC}|true=={rC}):rR|none}}}", "inline": false}], "description": "{=(dur):{join():{t}}}\n{if(true=={aC}):- You have entered meditation. Enjoy your mental health break. \nSee you in **{replace(d, Days. ):{replace(h, Hours. ):{replace(m, Minutes. ):{dur}}}}**}{all(false=={aC}|=={args(1)}):- You have entered meditation. Enjoy your mental health break. \nSee you in **1 hour**.}\n{=(Errors):{if(false=={userCheck}):- {user(mention)} You cannot meditate someone else!}~{all(false=={aC}|!={args(1)}):## You have entered an invalid duration.{if(false=={vTP}):\n- `{join():{t}}` You have entered the time references in an incorrect order, check your usage.}\n - You must follow the order of d, h, m.\n - You can use a combination of d, h, m. Such as 1d5h30m.{if(false=={allDC}):\n- `{join():{t}}` You have entered a duplicate time reference, check your usage.}\n - You cannot use them more than once though, such as 1d5h3d is invalid.}}\n{list(0):{Errors}}{list(1):{Errors}}"}
Raw JSON
{
  "id": 2011188,
  "created_at": "2024-05-13T05:53:55.000Z",
  "tag_name": "meditate",
  "nsfw": false,
  "owner_id": "478795116341886986",
  "uses": 1,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "",
  "hidden": false,
  "guild_id": "1018356475854336082",
  "sharer": "478795116341886986",
  "content": "{override}\n{redirect:<#1074176039422546010>}\n{=():}\n{=(role.1):1018980459209838644}\n{=(role.2):1018980362610802718}\n{=(role.3):1018981676417822761}\n{=(role.4):1018980548598841426}\n{=(role.5):1064684826185183292}\n{=(add):1075211188037746749}\n{blacklist({user(mention)}, you are already meditating.):{add}}\n{=(t):{lower:{replace(, ):{args(1)}}}}\n{=(day):{if({m:sgn({index(d):{t}})}==1):{m:trunc({index(d):{t}}+1)}|9999}}\n{=(hour):{if({m:sgn({index(h):{t}})}==1):{m:trunc({index(h):{t}}+1)}|9999}}\n{=(min):{if({m:sgn({index(m):{t}})}==1):{m:trunc({index(m):{t}}+1)}|9999}}\n{=(dDC):{in(d):{t(2+):d}}}\n{=(hDC):{in(h):{t(2+):h}}}\n{=(mDC):{in(m):{t(2+):m}}}\n{=(allDC):{in(false false false):{dDC} {hDC} {mDC}}}\n{=(vTC):{in(d):{t}} {in(h):{t}} {in(m):{t}}}\n{=(vTC):{in(true):{vTC}}}\n{=(vTP):{if(9999!={day}):{all({day}<{hour}|{hour}<={min}):true|false}|true} {all(9999!={day}|9999!={hour}):{all({day}<{hour}|{hour}<{min}):true|false}|true} {all(9999!={day}|9999!={hour}|9999!={min}):{all({day}<{hour}|{hour}<{min}):true|false}|true}}\n{=(vT):{join():{replace(d,):{replace(h,):{replace(m,):{t}}}}}}\n{=(vT):{if({m:sgn({vT})}==1):true|false}}\n{=(vTP):{if(true=={vT}):{in(true true true):{vTP}}|true}}\n{=(uC):{if({user(id)}=={target(id)}):true|false}}\n{=(urid):{user(roleids)}}\n{=(l1):{index(&$):{urid} &$}}\n{=(nl1):{m:trunc({l1}-1)}}\n{=(r1.i):{m:trunc({index({role.1}):{urid}}+1)}}\n{=(r1):{if({m:sgn({r1.i})}==1):{if(1=={r1.i}):urid(2+)|{if({l1}=={r1.i}):urid(+{nl1})|urid(+{m:trunc({r1.i}-1)})~urid({m:trunc({r1.i}+1)}+)}}|urid}}\n{=(r1C):{{list(1):{r1}}}}\n{=(r1):{{list(0):{r1}}}{if(!={r1C(1)}): {{list(1):{r1}}}}}\n{=(r2.i):{m:trunc({index({role.2}):{r1}}+1)}}\n{=(l2):{index(&$):{r1} &$}}\n{=(nl2):{m:trunc({l2}-1)}}\n{=(r2):{if({m:sgn({r2.i})}==1):{if(1=={r2.i}):r1(2+)|{if({l2}=={r2.i}):r1(+{nl2})|r1(+{m:trunc({r2.i}-1)})~r1({m:trunc({r2.i}+1)}+)}}|r1}}\n{=(r2C):{{list(1):{r2}}}}\n{=(r2):{{list(0):{r2}}}{if(!={r2C(1)}): {{list(1):{r2}}}}}\n{=(r3.i):{m:trunc({index({role.3}):{r2}}+1)}}\n{=(l3):{index(&$):{r2} &$}}\n{=(nl3):{m:trunc({l3}-1)}}\n{=(r3):{if({m:sgn({r3.i})}==1):{if(1=={r3.i}):r2(2+)|{if({l3}=={r3.i}):r2(+{nl3})|r2(+{m:trunc({r3.i}-1)})~r2({m:trunc({r3.i}+1)}+)}}|r2}}\n{=(r3C):{{list(1):{r3}}}}\n{=(r3):{{list(0):{r3}}}{if(!={r3C(1)}): {{list(1):{r3}}}}}\n{=(r4.i):{m:trunc({index({role.4}):{r3}}+1)}}\n{=(l4):{index(&$):{r3} &$}}\n{=(nl4):{m:trunc({l4}-1)}}\n{=(r4):{if({m:sgn({r4.i})}==1):{if(1=={r4.i}):r3(2+)|{if({l4}=={r4.i}):r3(+{nl4})|r3(+{m:trunc({r4.i}-1)})~r3({m:trunc({r4.i}+1)}+)}}|r3}}\n{=(r4C):{{list(1):{r4}}}}\n{=(r4):{{list(0):{r4}}}{if(!={r4C(1)}): {{list(1):{r4}}}}}\n{=(r5.i):{m:trunc({index({role.5}):{r4}}+1)}}\n{=(l5):{index(&$):{r4} &$}}\n{=(nl5):{m:trunc({l5}-1)}}\n{=(r5):{if({m:sgn({r5.i})}==1):{if(1=={r5.i}):r4(2+)|{if({l5}=={r5.i}):r4(+{nl5})|r4(+{m:trunc({r5.i}-1)})~r4({m:trunc({r5.i}+1)}+)}}|r4}}\n{=(r5C):{{list(1):{r5}}}}\n{=(r5):{{list(0):{r5}}}{if(!={r5C(1)}): {{list(1):{r5}}}}}\n{=(rem):{if(!={r5(1)}):-{join( -):{r5}}}}\n{=(rC):{if(!={rem(1)}):true|false}}\n{=(aC):{in(true true true true true):{allDC} {vTC} {vTP} {vT} {uC}}}\n{{all(true=={aC}|true=={rC}):c:temprole c {user(id)} {join():{t}} +{add} {rem}}}\n{{all(true=={aC}|false=={rC}):c:temprole c {user(id)} {join():{t}} +{add}}}\n{{all(false=={aC}|=={args(1)}|true=={rC}):c:temprole c {user(id)} 1h +{add} {rem}}}\n{{all(false=={aC}|=={args(1)}|false=={rC}):c:temprole c {user(id)} 1h +{add}}}\n{silence}\n{{all(false=={aC}|!={args(1)}):embed(color):#D0021B|embed(color):#fcb0f6}}\n{=(rR):<@&{join(>, <@&):{r5}}>}\n{=(none):**None.**}",
  "embed": "{\"color\": 16560374, \"title\": \"Self Meditation\", \"author\": {\"name\": \"{user}\", \"icon_url\": \"{user(avatar)}\"}, \"fields\": [{\"name\": \"Roles Temporarily Removed.\", \"value\": \"{{all(true=={aC}|true=={rC}):rR|{all(=={args(1)}|false=={aC}|true=={rC}):rR|none}}}\", \"inline\": false}], \"description\": \"{=(dur):{join():{t}}}\\n{if(true=={aC}):- You have entered meditation. Enjoy your mental health break. \\nSee you in **{replace(d, Days. ):{replace(h, Hours. ):{replace(m, Minutes. ):{dur}}}}**}{all(false=={aC}|=={args(1)}):- You have entered meditation. Enjoy your mental health break. \\nSee you in **1 hour**.}\\n{=(Errors):{if(false=={userCheck}):- {user(mention)} You cannot meditate someone else!}~{all(false=={aC}|!={args(1)}):## You have entered an invalid duration.{if(false=={vTP}):\\n- `{join():{t}}` You have entered the time references in an incorrect order, check your usage.}\\n - You must follow the order of d, h, m.\\n - You can use a combination of d, h, m. Such as 1d5h30m.{if(false=={allDC}):\\n- `{join():{t}}` You have entered a duplicate time reference, check your usage.}\\n - You cannot use them more than once though, such as 1d5h3d is invalid.}}\\n{list(0):{Errors}}{list(1):{Errors}}\"}",
  "last_fetched": "2026-10-20T19:36:48.028Z"
}